[R] lattice help required

Kay Cichini Kay.Cichini at uibk.ac.at
Wed Aug 25 20:43:06 CEST 2010


.. thanks again, richard.
and you swiftly saw the next problem comming up - when using par.settings =
list(layout.widths = list(axis.panel = c(1, 0))) getting rid of the double
tick labeling would be natural -
but i'll leave it at that for today.

many thanks,
kay


Richard M. Heiberger wrote:
> 
> The multiple y axes are protecting you in this situation.
> 
> 
> z <- cbind(rnorm(100,c(1,10),1), rnorm(100,c(20,30),1))
> dotplot(z[,1]+z[,2] ~ facs$Treatment|facs$Sites,
>         outer=TRUE,
>         scales = list(
>           y = list(
>             relation="free")),
>         ylab=c("y1", "y2"),
>         xlab=c("Site 1", "Site 2"),
>         strip=FALSE,
>         main="problem")
> 
> dotplot(z[,1]+z[,2] ~ facs$Treatment|facs$Sites,
>         outer=TRUE,
>         scales = list(
>           y = list(
>             relation="free",
>             limits=list(c(-5,13),c(-5,13),c(18,32),c(18,32)))),
>         ylab=c("y1", "y2"),
>         xlab=c("Site 1", "Site 2"),
>         strip=FALSE, main="protected")
> 
> For more control (such as suppressing the y-tick labels in the right-hand
> column,
> I recommend Deepayan Sarkar's book.
> 
> Rich
> 
> 	[[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.
> 
> 


-----
------------------------
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
------------------------

-- 
View this message in context: http://r.789695.n4.nabble.com/lattice-help-required-tp2338382p2338707.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list