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
piechart <- function(data, mapping) { ggplot(data, mapping) + geom_bar(width = 1) + coord_polar(theta = "y") + xlab(NULL) + ylab(NULL) } piechart(mpg, aes(factor(1), fill = class))