type_hline: Trace a horizontal line on the plot

View source: R/type_hline.R

type_hlineR Documentation

Trace a horizontal line on the plot

Description

Trace a horizontal line on the plot

Usage

type_hline(h = 0)

Arguments

h

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

Examples

tinyplot(mpg ~ hp | factor(cyl), facet = ~ factor(cyl), data = mtcars)
tinyplot_add(type = type_hline(h = 12), col = "pink", lty = 3, lwd = 3)

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