longplot: Displays a longplot in a html file.

View source: R/50_longplot.R

longplotR Documentation

Displays a longplot in a html file.

Description

A longplot is a range of suitable graphics that represent the relationship within the values of one, or a limited number, of variables in a dataset. Each graphic relates the values of all the selected variables and eventually the row number in which they appear.

Usage

longplot(data, vars, label = TRUE, dir = tempdir())

Arguments

data

Data.frame. Default dataset to use for plot. If not already a data.frame, it should be first coerced to by [as.data.frame()].

vars

Character. A specific variable within the dataset.

label

Logical. If 'TRUE' the output includes labels that show the names of the graphics that are being displayed.

dir

Directory in which the files are stored.

Details

In order to present the range of graphics, the user must define a dataset and select at least one variable whitin it. Future work will include graphics that can combine up to three variables.

Value

Cause the side-effect of creating and displaying a temporary html file that includes a range of graphics suitable for this particular combination of variables.

See Also

Specimens of grphics for univariate and bivariate data.

Examples

if (interactive()) {
longplot(esoph, "tobgp")
}

brinton documentation built on Jan. 7, 2023, 5:32 p.m.