geom_xmin: Draw vertical line at the minimum value of x

View source: R/min.R

geom_xminR Documentation

Draw vertical line at the minimum value of x

Description

Draw vertical line at the minimum value of x

Usage

geom_xmin(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

mapping

provide you own mapping, x is required

data

provide you own data

position

change geom

na.rm

remove missing values without warning, default is F

show.legend

show legend in plot, default is T

inherit.aes

should the geom inherits aesthetics from global, default is true

...

other arguments to be passed to the geom, see geom segment

Value

a ggplot2 layer

Examples

library(ggplot2)
ggplot(data = cars, mapping = aes(x = dist)) + geom_histogram() + geom_xmin()

EvaMaeRey/ggxmean documentation built on April 10, 2024, 6:32 p.m.