[R] Lattice / Trellis analog of axis(graphics) ?
derek.eder at lungall.gu.se
Wed Jan 3 12:16:12 CET 2007
My question is so basic that I am (almost too) embarrassed to admit that
I could not find an answer after an hour's worth of homework.
What is the Trellis / Lattice analog for the axis(graphics) function
that enables the creation of axes in locations other than the default
(i.e., bottom for X axis and right for Y axis) ?
For example when plotting mileage against weight (in American units),
one might want to also include a second X axis on the top margin (e.g.,
axis() pos = 3) with fuel mileage in metric units.
xyplot(Mileage ˜ Weight, data = fuel.frame)
system i386, mingw32
svn rev 39566
version.string R version 2.4.0 (2006-10-03)
Derek N. Eder
VINKLA - Vigilance and Neurocognition laboratory
Utvecklingslab 1, Med
Gröna stråket 8
SE 413 45 Göteborg (Gothenburg)
+46 (031)* 342 8261 (28261 inom Sahlgrenska)
+46 0704 915 714 (mobile)
+46 (031) 25 97 07 (home)
* omit the 0 when calling from outside Sweden
More information about the R-help