[R] Seeking help with trellis: log scales on xyplot
Deepayan Sarkar
deepayan.sarkar at gmail.com
Sat May 24 00:57:37 CEST 2008
On 5/23/08, hobie perry <hobie_perry at yahoo.com> wrote:
>
> Good afternoon.
>
> The basic plot function can automatically generate log scales as follows:
>
> plot(calcium ~ soil_ph, log="y")
>
> Here is my basic model in xyplot...
>
> xyplot(calcium+magnesium ~ soil_ph|depth*region)
>
> I would like the calcium and magnesium values to be reported on a log scale.
> I have tried manipulating "scales" and "yscale.components" to no effect.
Try something like
xyplot(calcium+magnesium ~ soil_ph|depth*region,
scales = list(y = list(log = 2)))
-Deepayan
More information about the R-help
mailing list