geom_line_endpoint: geom_line_endpoint

View source: R/geom_line_endpoint.R

geom_line_endpointR Documentation

geom_line_endpoint

Description

add a charming endpoint to your lines

Usage

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

Arguments

...

Examples

# functions
geom_line_endpoint
library(ggplot2)
ggplot(cars) +
   aes(x = speed, y = dist) +
   geom_line() +
   geom_line_endpoint()

ggplot(cars) +
    aes(x = speed, y = dist, color = dist > 15) +
    geom_line() +
    geom_line_endpoint()

ggplot(cars) +
     aes(x = speed, y = dist,
         color = dist > 15,
         linetype = speed > 16) +
     geom_line() +
     geom_line_endpoint()

EvaMaeRey/ggdirect documentation built on Sept. 29, 2023, 12:36 a.m.