Learn R Programming

precisePlacement (version 0.1.0)

showMarginLines: Add Lines to a Plot to Indicate Where the Margins Are

Description

Add Lines to a Plot to Indicate Where the Margins Are

Usage

showMarginLines(sides = 1:4, lty = 2, ...)

Arguments

sides

Numeric vector giving the sides of the plot to annotate. Defaults to 1:4.

lty

Argument to be passed to graphics::abline. Defaults to 2.

...

Other arguments to be passed to graphics::abline

Examples

Run this code
# NOT RUN {
plot(1:10)
par(xpd = NA)
showMarginLines()

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab