type_vline: Trace a vertical line on the plot

View source: R/type_vline.R

type_vlineR Documentation

Trace a vertical line on the plot

Description

Trace a vertical line on the plot

Usage

type_vline(v = 0)

Arguments

v

x-value(s) for vertical line(s). Numeric of length 1 or equal to the number of facets.

Examples

tinyplot(mpg ~ hp, data = mtcars)
tinyplot_add(type = type_vline(150))

# facet-specify location and colors
cols = c("black", "green", "orange")
tinyplot(mpg ~ hp | factor(cyl), facet = ~ factor(cyl), data = mtcars, col = cols)
tinyplot_add(type = type_vline(v = c(100, 150, 200)), lty = 3, lwd = 3)


tinyplot documentation built on April 12, 2025, 9:15 a.m.