This worked very well for me.
Thanks,
Naresh
From: P Tennant
Sent: Saturday, November 5, 2016 7:57 PM
To: Naresh Gurbuxani
Cc: R-help@r-project.org
Subject: Re: [R] lattice graph with free scales and reversed axis values
Hi Naresh,
You could calculate the
Hi Naresh,
You could calculate the ranges explicitly and then supply to scales():
holdRange <- vector('list', length(unique(my.df$name)))
for(i in 1:length(holdRange)){
holdRange[[i]] <-
rev(range(my.df$x[my.df$name==unique(my.df$name)[i]]))
}
holdRange
# [[1]]
# [1] -5.052890 -9.967
> On Nov 5, 2016, at 3:59 PM, Naresh Gurbuxani
> wrote:
>
> I want to draw a lattice graph where different panels have different ranges
> AND the order of values is reversed. I am struggling to achieve both at the
> same time. Can you help?
>
> Thanks,
> Naresh
>
> # Create dummy data for
3 matches
Mail list logo