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

library("tinyplot")

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