在某些版本中,的点geom_point
变得更大。可能是2.0:“ geom_point()现在使用形状19而不是16。”
如何使geom_point中的默认点像以前一样小?
编辑:如何更改所有图而不向每个图添加代码?即是默认值。我查看了get_theme(),没有看到关于积分的任何信息。
请参阅http://ggplot2.tidyverse.org/reference/geom_point.html
ggplot(mtcars, aes(disp, hp)) + geom_point(shape = 16)
要更新默认的ggplot geom参数:
update_geom_defaults("point", list(shape = 16))
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句