Message-ID: <7900634.post@talk.nabble.com>
Date: 2006-12-15T22:41:49Z
From: RMan54
Subject: xyplot: logarithmic y-axis
In-Reply-To: <eb555e660612151426s30981295r30e3d3ee123f412f@mail.gmail.com>
Please take no offence since none was intended. What I meant is that it
should be simple for me to know how to do this but it isn't because of my
inexperience. I think that the lattice package is great.
However, how can I pass on my own varaibles through xyplot?
Thanks, -Rene
Deepayan Sarkar wrote:
>
> On 12/15/06, RMan54 <RMan54 at cox.net> wrote:
>>
>> This should be simple but I am struggling. I like to easily switch in
>> xyplot
>> between a linear or logarithmic y-axis by setting a logical flag logY to
>> False or True. This switch changes the scales argument of xyplot. I found
>> out that the original two-dimentional data (Conc vs Time in my case) are
>> converted to log10(Conc) if log=TRUE in scales, but it appears that
>> functions like panel.curve need to provide the y values in log10 form (if
>> there is an automatic method, I would like to know). I therefore like to
>> pass on the value logY to my custom panel.curve function. How do I do
>> that?
>> I think that the value of logY should go into xyplot that should pass it
>> on
>> to the panel function and then to the panel.curve function.
>
> It probably should, but doesn't.
>
> -Deepayan
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
>
--
View this message in context: http://www.nabble.com/xyplot%3A-logarithmic-y-axis-tf2829755.html#a7900634
Sent from the R help mailing list archive at Nabble.com.