![]() Alternatively smooth can be set to a list of arguments. The smooth argument is usually either set to TRUE or FALSE to draw, or omit, Many arguments to scatterplotMatrix were changed in version 3 of car, to simplify use of Opposed to at the bottom, as in graph (argument suggested by Richard Heiberger). If TRUE (the default) the first row is at the top, as in a matrix, as The regLine and smooth are the same as for points but can be changed using the the Plotting characters for points default is the plotting characters inĬolors for points the default is carPalette starting at the second color. If "complete.obs" (the default), cases with missing data are omitted if ""), all valid cases are used If TRUE, the default, regression lines and smooths are fit by groups. Plotted with different colors and plotting characters. See details below for other choices for the diagonal.Ī factor or other variable dividing the data into groups groups are If diagonal=TRUE adaptive kernel densityĮstimates are plotted, separately for each group if grouping is present. Variable labels (for the diagonal of the plot).Ĭontents of the diagonal panels of the plot. Which control whether the ellipse is filled and the transparency of the fill. To calculate the center and covariance matrix for the data ellipses and fill and fill.alpha, The cov.trob function in the MASS package Plot the ellipses robust, a logical value determing whether to use Can be a list of named values giving levels, a vector of one or moreīivariate-normal probability-contour levels at which to If FALSE (the default), noĮllipses are plotted. Setting method=MASS::rlm would fit using a robust regression.Ĭontrols plotting data-concentration ellipses. ![]() To regLine = list(method=lm, lty=1, lwd=2, col=col) specifying the name of the function thatĬomputes the line, with line type 1 (solid) of relative line width 2 and the color equal to the first This argument can also be a list with named list, with default regLine=TRUE equivalent TRUE (the default) is equivalent to list(coords=NULL, pt.cex=cex, cex=cex), for which placement will varyīy the the value of the diagonal argument-e.g., "topright" for diagonal=TRUE.Ĭontrols adding a fitted regression line to each plot, or to each group of points In any form acceptable to the legend function, and elements pt.cex and cex corresponding respectively to the pt.cex and cex arguments of the legend function Can be a list with the named element coords specifying the position of the legend Of the data list(method="identify") for interactive point identification is not allowed.Ĭontrols placement, point size, and text size of a legend if the plot is drawn by groups if FALSE, the legend Which identifies the 2 points (in each group, if by.groups=TRUE) with the largest Mahalanobis distances from the center TRUE is equivalent to list(method="mahal", n=2, cex=1, location="lr"), The smoother, line type, width and color, of the added lines, and adding arguments for the smoother.Ĭontrols point identification if FALSE (the default), no points are identified Ĭan be a list of named arguments to the showLabels function ![]() The default smoother is loessLine, which uses the loess function from If smooth=TRUE, then both the mean functionĪnd variance funtions are drawn for ungrouped data, and the mean function only is drawn for groupedĭata. Horizontal axis variable and optionally a nonparametric estimate of the spread or variance function. Specifies a nonparametric estimate of the mean or medianįunction of the vertical axis variable given the + xk | z where zĮvaluates to a factor or other variable to divide the data into groups.Ī data frame within which to evaluate the formula.Įxpression defining a subset of observations. Use = c("complete.obs", ""), col =ĬarPalette(), pch = 1:n.groups, cex = par("cex"),Ĭex.axis = par("cex.axis"), cex.labels = NULL,Ĭex.main = par("cex.main"), row1attop = TRUE. Plot.points = TRUE, groups = NULL, by.groups = TRUE, Id = FALSE, legend = TRUE, regLine = TRUE,Įllipse = FALSE, var.labels = colnames(x), diagonal = TRUE, ScatterplotMatrix(formula, data=NULL, subset. Spm is an abbreviation for scatterplotMatrix. This function provides a convenient interface to the pairs function to produceĮnhanced scatterplot matrices, including univariate displays on the diagonal and a variety of fitted lines, smoothers, variance functions, and concentration ellipsoids.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |