如何在使用ggplot时轻松创建小数y值?ggplot中的小数y-var
t <- as.factor(test=sample(seq(0,100,10),1000,rep=T))
d <- as.factor(sample(c(0,1),1000,rep=T)
p <- data.frame(t,d)
我最好的拍摄是:
ggplot(p,aes(x=t,y=prop.table(table(t,d),1)[,1])) + geom_point()
但是这并不工作,我想有解决这个更简单的方法...
不是2011年1月?为什么这个弹出到列表的顶部? – Chase 2011-01-22 20:09:41