[英]How do I create boxplots in ggplot2 by subsetting a column into ranges to get the X values?
[英]ggplot2 How do I get a count of numbers in column?
ggplot(datset, aes(x=Date.received,y=Issue))+geom_dotplot(stat="identity")
这就是我现在所拥有的,我只想获得不按唯一身份分组的“问题”计数。
我想看起来像这样:
你需要 stat = "count" ,所以你可以尝试创建条形图
ggplot(dataset, aes(x = Date.received))+geom_bar(stat = "count")
如果行,取决于 Date.received 变量的格式,这可以工作
ggplot(dataset, aes(x = Date.received))+geom_line(stat = "count")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.