Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的数据中的最小观察值是 326。但是geom_freqpoly绘制了一个从零以下开始的频率多边形。是什么赋予了?我如何让它从一个明智的地方开始?
geom_freqpoly
min(diamonds$price) # [1] 326 qplot(price, data=diamonds, geom="freqpoly")
您可以设置原点参数:
qplot(price, data=diamonds, geom="freqpoly", origin=0)
geom_freq poly() 默认使用与 geom_histogram() 相同的 stat_bin() 函数来计算多边形。您可以获得有关控制密度估计的不同有效参数的更多信息?stat_bin()
?stat_bin()