Deepayan:

Thank you for the idea, but this doesn't quite solve the problem.

The scale setting creates axes labelled with the logs of the y-axis data, but the data themselves have not been rescaled. The result is a graphic which truncates the data.

What I am seeking is a means to rescale the underlying data and then plot them, without having to take the logs myself. This may not be possible.

Hobie Perry
St. Paul, MN

Deepayan Sarkar <deepayan.sarkar@gmail.com> wrote: On 5/23/08, hobie perry  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


       
	[[alternative HTML version deleted]]

