执行平行坐标? [英] Implementation of parallel coordinates?

查看:79
本文介绍了执行平行坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为多维结果实现平行坐标.有没有人很好地链接到它在matlab或R中的实现?此外,对于使用最佳工具生成平行坐标有什么建议吗?

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?

推荐答案

R解决方案

晶格软件包随附R,并包含parallel函数:

lattice package comes with R and includes parallel function:

 parallel(~iris[1:4] | Species, iris) 

ggplot2 也是您的朋友在这里:

D <- data.frame(Gain = rnorm(20),  
                Trader = factor(LETTERS[1:4]), 
                Day = factor(rep(1:5, each = 4)))
ggplot(D) + 
  geom_line(aes(x = Trader, y = Gain, group = Day, color = Day))

晶格和ggplot需要不同形状"的输入数据.对于晶格,它是一种矩阵形式,每一列都是在一个平行坐标上表示的变量.对于ggplot,它是一列(收益)和变量的单独指标(上述交易者). /这就是我使用两个不同示例的原因,而不是在此处弄乱数据重塑的原因.

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/.

如果您需要快速的操作,那么晶格可能适合您. Ggplot需要一些时间投入.

If you need something quick, then lattice is probably for you. Ggplot requires some time investment.

这篇关于执行平行坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆