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,
  ...
)

Arguments

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

Value

ggplot2 layer

Examples

# 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")
#> Default sample_size is 10
#> Default sample_size is 10
#> Default sample_size is 10