前言
最近某项目要搞数据挖掘,需要对数据进行可视化显示,原本我是打算直接用excel 算了,打算,用了一段时间,发现有些数据图用excel麻烦得要命,然后,上网找了一下,原来,有在这方面也有一门专门的语言...----R语言,我发现,用它绘制数据图十分强大,就打算花几天,就学习如何用R语言绘制数据图
散布图(scatter plots)
需要掌握的命令:
plot()
xyplot()
qplot()
text...()
smoothScatter()
matrix()
jitter()
rbinom()
rnorm()
lines()
lowess()
nls()
用的的包:
ggplot2
lattice
scattersplot3d...大数据的平滑分散图显示
n <- 1000000
x <- matrix(rnorm(n), ncol=2)
y <- matrix(rnorm(n,mean=3,sd=1.5), ncol=2)
smoothScatter