R语言ggplot2可视化绘制累积计数图(累加图,cumulative counts)
目录
R语言ggplot2可视化绘制累积计数图(累加图,cumulative counts)
#累积计数图(累加图,cumulative counts)1
#累积计数图(累加图,cumulative counts)2
#累积计数图(累加图,cumulative counts)3
#累积计数图(累加图,cumulative counts)1
x <- data.frame(A=replicate(200,sample(c("a","b","c"),1)),X=rnorm(200))
ggplot(x,aes(x=X,color=A)) + geom_step(aes(y=..y..),stat="ecdf")