I want to implement parallel coordinates for my muldimensional result. Does anyone have a good link to its implementation in matlab or R? Furthermore, are there any suggestions regarding the best tool to use for producing the parallel coordinates?
相关问题
- Extract matrix elements using a vector of column i
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
相关文章
- How to convert summary output to a data frame?
- Numpy matrix of coordinates
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
If you are looking to use parallel coordinates, MATLAB has an implementation in the Statistics Toolbox: PARALLELCOORDS.
Otherwise if you want to implement one yourself, the basic version (without all of the bells and whistles) should be easy to do:
R solution
lattice package comes with R and includes
parallel
function:ggplot2 is also your friend here:
lattice and ggplot require input data in different "shapes". For lattice it's a matrix form, each column is a variable represented on one parallel coordinate. For ggplot it's one column (Gains) and a separate indicator for the variable (Trader above). /this is the reason I used two different examples, not to mess with data reshaping here/.
If you need something quick, then lattice is probably for you. Ggplot requires some time investment.
GGobi has had for aeons (as its predecessor XGobi already had it).
You can access this via the rggobi package from R. And being open source, you get to look under the hood too.
The MASS package (available to most of the R installations) includes an implementation for parallel coordinates. The function
parcoord
.From the examples of the ?parcoord -a bit corrected- for the Iris data set: