lineplot: Plot a one or more lines

View source: R/plots.R

lineplotR Documentation

Plot a one or more lines

Description

Plot a one or more lines

Usage

lineplot(x, ..., legend)

Arguments

x

variable giving horizontal coordinates.

...

one or more variables giving vertical coordinates.

legend

plot legend? Default is TRUE if there is more than one variable to plot and FALSE is there is just one.

Details

This function plots lines for one or more variables against another variable, typically time series against time.

Value

Produces a plot; returns NULL invisibly.

Author(s)

John Fox

Examples

data(Bfox)
Bfox$time <- as.numeric(rownames(Bfox))
with(Bfox, lineplot(time, menwage, womwage))


RcmdrMisc documentation built on Jan. 8, 2026, 9:06 a.m.