Learn R Programming

tinyplot (version 0.3.0)

type_hline: 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

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

Run the code above in your browser using DataLab