RcmdrMisc (version 1.0-6)

indexplot: Index Plots

Description

Index plots with point identification.

Usage

indexplot(x, labels = seq_along(x), id.method = "y", type = "h", 
    id.n = 0, ylab, ...)

Arguments

x

a numeric variable, a matrix whose columns are numeric variables, or a numeric data frame; if x is a matrix or data frame, plots vertically aligned index plots for the columns.

labels

point labels; if x is a data frame, defaults to the row names of x, otherwise to the case index.

id.method

method for identifying points; see showLabels.

type

to be passed to plot.

id.n

number of points to identify; see showLabels.

ylab

label for vertical axis; if missing, will be constructed from x; for a data frame, defaults to the column names.

to be passed to plot.

Value

Returns labelled indices of identified points or (invisibly) NULL if no points are identified or if there are multiple variables with some missing data.

See Also

showLabels, plot.default

Examples

Run this code
# NOT RUN {
if (require("car")){
    with(Prestige, indexplot(income, id.n=2, labels=rownames(Prestige)))
    indexplot(Prestige[, c("income", "education", "prestige")], id.n=2)
}
# }

Run the code above in your browser using DataLab