Re: [R] Lattice / Trellis analog of axis(graphics) ?

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Wed 03 Jan 2007 - 21:30:20 GMT

On 1/3/07, Derek Eder <derek.eder@lungall.gu.se> wrote:
> 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)

You might find the help page ?axis.default (and its example) useful.

-Deepayan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Jan 04 11:36:45 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 Jan 2007 - 01:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.