[R] how to label customized y axis when using lattice parallel parameter common.scale=TRUE
deepayan.sarkar at gmail.com
Tue Apr 5 15:42:51 CEST 2011
On Tue, Apr 5, 2011 at 4:39 PM, Pengcheng Yang <pengchy at gmail.com> wrote:
> Dear all,
> When I use parallel function in lattice package, I want to label the y-axis
> with customized numbers. Like this:
> parallel(~iris[1:4] | Species, iris,horiz=FALSE,common.scale=TRUE,
Parallel does not directly support that, and will insist on scaling
the data. However, you can control the scaling (using 'lower' and
'upper'), and override a couple of other arguments to get what you
parallel(~iris[1:4] | Species, iris,
xlim = extendrange(range(iris[1:4])),
scales = list(x = list(at = NULL, labels = NULL)),
lower = 0, upper = 1)
This is for horizontal.axis = TRUE, adjust accordingly for FALSE.
> But only "Min" label in the y-axis, nothing happened. Could anyone help me?
> Pengcheng Yang
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help