lineplot: Plot a one or more lines.

Description Usage Arguments Value Author(s) Examples

View source: R/plots.R

Description

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

Usage

1

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.

Value

Produces a plot; returns NULL invisibly.

Author(s)

John Fox jfox@mcmaster.ca

Examples

1
2
3
4
5
    if (require("car")){
    data(Bfox)
    Bfox$time <- as.numeric(rownames(Bfox))
    with(Bfox, lineplot(time, menwage, womwage))
}

Example output

Loading required package: car
Loading required package: carData
Loading required package: sandwich

RcmdrMisc documentation built on Aug. 13, 2020, 9:06 a.m.