[R] Log scale on y axis of parallel coordinate plot (lattice)

Roland Seubert rseubert at ymail.com
Thu Jan 17 10:59:06 CET 2013


Hello all,

Thanks a lot for you help!

Just in case someone else will have that same problem in the future: 
Meanwhile I also found out that ggplot2 gives you the option to freely 
swap x- and y-axes and apply a log-scale to whichever one you need:

 > library(ggplot2)
 > library(reshape2)

 > molten <- melt(df_n, id = ".row")

 > p <- ggplot(molten, aes(variable, value, group = .row))
 > p <- p + geom_line() + scale_y_log10()
 > p

Cheers,
Roland

On 17/01/13 06:53, ilai wrote:
>
>
> On Wed, Jan 16, 2013 at 12:46 PM, ilai <keren at math.montana.edu
> <mailto:keren at math.montana.edu>> wrote:
>
> Oops... That's
>
> require(latticeExtra)
>
>     c(parallelplot(~ df_n, horizontal.axis = FALSE, scales=list(x =
>     list(log = TRUE))) ,
>       parallelplot(~ df_n, horizontal.axis = FALSE))
>
>
> or you'll get the full printout of the two objects.
> Sorry
>
>         HTH
>
>         --
>         ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>             ___    Patrick Connolly
>           {~._.~}                   Great minds discuss ideas
>           _( Y )_                 Average minds discuss events
>         (:_~*~_:)                  Small minds discuss people
>           (_)-(_)                              ..... Eleanor Roosevelt
>
>         ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>
>         ______________________________________________
>         R-help at r-project.org <mailto: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.
>
>
>



More information about the R-help mailing list