[R] Fwd: Re: Seeking help with trellis: log scales on xyplot

From: Hobie Perry <hobie_perry_at_yahoo.com>
Date: Tue, 27 May 2008 08:13:49 -0700 (PDT)


Deepayan:

Sorry for the additional email, but I'm concerned that I wasn't being clear.

In the end, I would like a graphic that portrays my y-values on a log scale in their native data range. That is to say, I would prefer to see the axis labels as 1000 rather than 3 (log10 of 1000).

Thank you for your kind assistance,
Hobie Perry
St. Paul, MN

Hobie Perry <hobie_perry_at_yahoo.com> wrote: Date: Tue, 27 May 2008 08:01:13 -0700 (PDT) From: Hobie Perry <hobie_perry_at_yahoo.com> To: Deepayan Sarkar <deepayan.sarkar_at_gmail.com> CC: r-help_at_r-project.org
Subject: Re: [R] Seeking help with trellis: log scales on xyplot

 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 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]]



R-help_at_r-project.org 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.
       
	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org 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 Tue 27 May 2008 - 17:13:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 27 May 2008 - 18:30:44 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.

list of date sections of archive