[R] Adjusting the x axis range in effects plots

David Winsemius dwinsemius at comcast.net
Wed Feb 5 22:40:11 CET 2014


On Feb 5, 2014, at 4:17 AM, S Ellison wrote:

>> I am having some difficulties with effects plots from the effects package. 
> Your problem is probably not xlim, which the effects plots should accept; it's more likely that you're trying to use base graphics to add symbols to a lattice plot - effects uses lattice, not base graphics. The coordinate systems don't mix. 
> 
> Try googling 'adding points to lattice plots' or similar - but be prepared for some intricate answers.

That effort may be advanced by looking at:

library(lattice)
?trellis.focus
?lpoints

.... and working through the examples on those pages.

-- 
David Winsemius
Alameda, CA, USA




More information about the R-help mailing list