[R] Ordering variables in a parallel coordinates plot
Dieter Menne
dieter.menne at menne-biomed.de
Sun Jan 3 22:25:26 CET 2010
Hi, Tal,
Tal Galili wrote:
>
> In any case, my question wasn't on how to reorder the columns (that is
> simple), but on how to choose what order to put them in.
>
So is your question answered? Or what exactly is the problem using the
example below?
library(lattice)
parallel(~iris[1:4] | Species, iris)
# if I understand you, this is "easy"
parallel(~iris[c(3,2,1,4)] | Species, iris)
# so I only can think you mean this...
iris$SpeciesR = with(iris,
factor(Species,levels= levels(Species)[c(3,1,2)]))
parallel(~iris[1:4] | SpeciesR, iris)
# .. but I am sure you know this already
Dieter
--
View this message in context: http://n4.nabble.com/Ordering-variables-in-a-parallel-coordinates-plot-tp997388p997909.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list