简体   繁体   中英

Change default dot size of geom_point() in ggplot2?

At some release, the dots of geom_point became bigger. It might be 2.0 : "geom_point() now uses shape 19 instead of 16."

How can I make the default dot from geom_point smaller like it used to be?

Edit: How do I change ALL plots without adding code to every plot? That is, the default. I looked in get_theme() and didn't see anything about points.

refer http://ggplot2.tidyverse.org/reference/geom_point.html

ggplot(mtcars, aes(disp, hp)) + geom_point(shape = 16)

For updating default ggplot geom parameters:

update_geom_defaults("point", list(shape = 16))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM