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 at cheque.uq.edu.au
Quoting cmorab at 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 at unity.ncsu.edu
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>