Draws a circle mark for each row of the layer data - the default view of a relationship between two continuous variables.

geom_point(
  mapping = NULL,
  data = NULL,
  stat = stat_identity(),
  color = NULL,
  size = NULL,
  alpha = NULL
)

Arguments

mapping

Layer-specific aesthetic mapping (optional; merged over the plot-level mapping, layer winning on conflicts).

data

Layer-specific data frame (optional).

stat

A Stat instance; defaults to stat_identity().

color

Literal point color (any R color spec) when color is not a mapped aesthetic.

size

Literal point radius in pixels when size is not mapped.

alpha

Point opacity in [0, 1].

Value

A Layer object to add to a plot with +.

Examples

ggnext(cars, aes(speed, dist)) + geom_point(color = "steelblue", size = 4)
#> <ggnext plot>
#>   data:  50 x 2
#>   aes:   x = speed, y = dist
#>   layers: 1 
#>   coord: cartesian
#>   mode:  static