Skip to content
Prev 178693 / 398506 Next

effects package --- add abline to plot

Dear David,
The plot() methods in the effects package make lattice graphs which in most instances will have more than one panel. For a binomial GLM, the default is to plot on the scale of the linear predictor (e.g., the logit scale) but to label the response axis on the scale of the response (i.e., the probability scale). To draw a line on the graph, even if you could do it, would require that you translate to the scale of the linear predictor [e.g., for a logit model, log(p/(1 - p))].
"ticks: a two-item list controlling the placement of tick marks on the vertical axis, with elements at and n. If at=NULL (the default), the program attempts to find `nice' locations for the ticks, and the value of n (default, 5) gives the approximate number of tick marks desired; if at is non-NULL, then the value of n is ignored."
You can't just modify a lattice graph on the screen like that. plot() invisibly returns the lattice object; I suppose that you could try to modify that, but I think that my original suggestion -- to make a custom plot from the object returned by effect() -- is likely simpler.

John