matplot() 可以很容易地按列绘制矩阵/二维数组(也适用于数据框):
matplot()
a <- matrix (rnorm(100), c(10,10)) matplot(a, type='l')
有没有类似的使用ggplot2,或者ggplot2是否要求数据首先melted进入数据帧?
melted
另外,有没有办法使用单独的矢量(of length=ncol(a))任意地对矩阵列的子集进行着色/样式化?
length=ncol(a)
plot r matrix ggplot2
ggplot2 ×1
matrix ×1
plot ×1
r ×1