geom_point_sample.Rd
A geom that shows a sampling of points
geom_point_sample( mapping = NULL, data = NULL, position = "identity", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ... )
mapping | aesthetic mappings |
---|---|
data | global data |
position | ggplot2 positions |
na.rm | logical remove na |
show.legend | logical, should legend be displayed for layer |
inherit.aes | logical, should global aes be used for this layer |
... | all the geom_point arguments |
ggplot2 layer
# using the function set.seed(92389) library(ggplot2) ggplot(data = cars) + aes(x = speed, y = dist) + geom_point() + geom_point_sample(color = "red") + geom_point_sample(color = "green", sample_size = 5) + geom_point_sample(sample_size = 2, color = "blue")#>#>#>