agg_hline: Add a horizontal line to your graph

Description Usage Arguments Examples

View source: R/gg-constructors.R

Description

Add a horizontal line to your graph

Usage

1
agg_hline(y, colour = "black", panel, lwd = 1, lty = 1)

Arguments

y

The y coordinate to draw the vertical line at

colour

The colour of the line (default black)

panel

Which panel should the line be placed on? You can specify a vector of panels (e.g. 'panel = c("1","3")') to apply the line to multiple panels at once.

lwd

(Optional, default 1) The line width

lty

(Optional, default 1) The line type (uses R line types)

Examples

1
arphitgg() + agg_hline(y=0.7,panel="1")

angusmoore/arphit documentation built on Feb. 15, 2021, 9:40 a.m.