plt_pinpoint: ggplot2: Add a single point with two lines in a ggplot2

View source: R/plt_pinpoint.R

plt_pinpointR Documentation

ggplot2: Add a single point with two lines in a ggplot2

Description

Add a single point in a ggplot2 scatter plot.

Usage

plt_pinpoint(
  x,
  y,
  color = "firebrick3",
  size = 3,
  linetype = "dashed",
  linewidth = 0.75
)

Arguments

x

A numeric single value

y

A numeric single value

color

A character single value (default = 'firebrick3'), that will be the line color

size

A numeric single value (default = 3)

linetype

A character single value (default = 'dashed'), that will be the line type

linewidth

A numeric single value (default = 0.75), that will be the line width

Value

A ggplot2 object.

Examples


library(ggplot2)

plot <-
  ggplot(mtcars,aes(qsec,mpg))+
  geom_point()

plot

plot + plt_pinpoint(x = 18,y = 25)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.