Message-ID: <200901231500.49826.dylan.beaudette@gmail.com>
Date: 2009-01-23T23:00:49Z
From: Dylan Beaudette
Subject: lattice: reverse order of panel.lmline, panel.smooth
Hi,
is it possible to reverse the order in which panel.lmline() or panel.smooth()
operation in xyplot() ? This type of situation might occur when plotting some
variable with depth, but the relation we want to describe is variable ~
depth, and not depth ~ variable, as the plotting formula would suggest.
# an example:
d <- 1:100
v <- d * rnorm(100)
xyplot(d ~ v, ylim=c(100,0), type=c('p','r','smooth'))
# points are positioned correctly, but the lmline and smoothed line are in
opposite the "desired" orientation. obviously xyplot() has no way of knowing
this, but can it be convinced?
Thanks,
Dylan
--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341