Re: [R] how to label customized y axis when using lattice parallel parameter common.scale=TRUE

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Tue, 05 Apr 2011 19:12:51 +0530

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,
>    scales=list(y=list(at=c(0,2,3))))

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 want:

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.

-Deepayan

>
> But only "Min" label in the y-axis, nothing happened. Could anyone help me?
>
> Thanks.
> Regards,
>
> Pengcheng Yang
>
> ______________________________________________
> 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.
>



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 05 Apr 2011 - 13:44:56 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 05 Apr 2011 - 15:50:26 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