Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change default dot size of geom_point() in ggplot2?

Tags:

r

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.

like image 856
dfrankow Avatar asked Apr 13 '17 13:04

dfrankow


1 Answers

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))
like image 163
ahly Avatar answered Sep 25 '22 08:09

ahly