geom_area()
geom_bar()
geom_line()
geom_point()
geom_polygon()
geom_histogram()
geom_rect()
geom_tile()
geom_raster()
geom_text()
sf
tbl_graph
&
geom_sf()
stat_...()
...
plot()
ggplot
To reduce duplicated code, build up repeated components
Can also generalize code to allow for flexibility
One example of a component of a plot is this one below:
bestfit <- geom_smooth( method = "lm", se = FALSE, colour = alpha("steelblue", 0.5), linewidth = 2) class(bestfit)
[1] "LayerInstance" "Layer" "ggproto" "gg"