indexplot {RcmdrMisc} | R Documentation |
Index plots with point identification.
indexplot(x, labels = seq_along(x), id.method = "y", type = "h", id.n = 0, ylab, ...)
x |
a numeric variable, a matrix whose columns are numeric variables, or a numeric data frame;
if |
labels |
point labels; if |
id.method |
method for identifying points; see |
type |
to be passed to |
id.n |
number of points to identify; see |
ylab |
label for vertical axis; if missing, will be constructed from |
... |
to be passed to |
Returns labelled indices of identified points or (invisibly) NULL
if no points
are identified or if there are multiple variables with some missing data.
John Fox jfox@mcmaster.ca
if (require("car")){ with(Prestige, indexplot(income, id.n=2, labels=rownames(Prestige))) indexplot(Prestige[, c("income", "education", "prestige")], id.n=2) }