Re: [R] Question about trellis graphs

About this list Date view Thread view Subject view Author view Attachment view

From: Andrew C. Ward (s195404@student.uq.edu.au)
Date: Fri 31 Jan 2003 - 12:57:55 EST


Message-id: <1043978275.3e39d82308a53@my.uq.edu.au>

Christian,

The scales argument of lattice plots achieve this.
For instance you could have
   xyplot(y ~ x, data=my.data, scales=list(x=list(at=c(0, 0.1, 0.2),
          labels=c("0.0", "0.1", "0.2"))))

Check out ?xyplot for a lot more detail on this
and other arguments to lattice functions.

Regards,

Andrew C. Ward

CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
andreww@cheque.uq.edu.au

Quoting cmorab@bellsouth.net:

> Dear List Members
>
> I'm using R to create a trellis plot using the library of Pinheiro & Bates
> (trellis graph for grouped data). Here is my question: How can I change the
> format of the axis (x or y) in terms of the number decimal points that
> should appear on the plot? In other words, I have that for a set of plots in
> the y-axis the values appear as 0.2,0.3, etc and for another set they appear
> as 0.20,0.30 etc and I want both to look identical.
>
> Thanks for any hint
>
> Christian
>
> ________________________________
>
> Christian R. Mora
> MS Student - Department of Forestry
> North Carolina State University
> e-mail: crmora@unity.ncsu.edu
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:20 EST