Professional Documents
Culture Documents
abline() This function adds one or more straight lines through the current plot.
a, b = the intercept and slope, single values.
untf = logical asking whether to untransform. See ‘Details’.
h= the y-value(s) for horizontal line(s).
v= the x-value(s) for vertical line(s).
coef = a vector of length two giving the intercept and slope.
reg = an object with a coef method. See ‘Details’.
text() draws the strings given in the vector labels at the coordinates given by x and y. y
x, y = numeric vectors of coordinates where the text labels should be written
labels = a character vector or expression specifying the text to be written
escape charactors \n work
adj = 0 left justified, 1 right justified
pos = a position specifier for the text. If specified this overrides any adj value given. Values of
3 above
2 left 4 right
1 below
offset when pos is specified, this value gives the offset of the label from the specified coordinate in fractions of a character width.
srt= string rotation % angle change. +/- 90 works best
cex =
col =
font = 1 - normal 2 – bold 3 – italics 4 – bold italics
legend() x= "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" ,"center"
y= optional if using coordinates numbers within the graph (requires trial/error
legend string or expression – c(“string”, “string”)
fill = color of boxes within the legend
border = border col
lty, lwd = has to be set up additional to your model shapes
pch = “c(#,#)” included lines
col = “c(“color”,”color”)”color of lines/shapes within the legend
axis() Used when axes = FALSE and you want to custom build an axis
side = 1 – x axis below,
2 – y axis left of plot
3 – x at top
4 – right
at = vector or seq for location of tic marks
labels = vector for labels at each tick mark
las = label axis style
1 – vertical, 2 – horizontal
col = axis / tick marks
supsmu() Friedman’s super smoother is a nonparametric regression estimator based on local linear regression with adaptive bandwidths.
Friedman [1984] proposed an oversmoothing parameter which biases the smooth towards the largest bandwidth from the grid
of bandwidths over which the cross-validation was performed.
returns an array for a Friedman smoothing spline
x= values for smoothing
y= y values for smoothing
wt = case weights, by default all equal
span = the fraction of the observations in the span of the running lines smoother, or "cv" to choose this by leave-one-out cross-validation.
bass = ∈ [0, 10] controls the smoothness of the fitted curve, w/ increasing smoothness.
order = "AOE" angular order of the eigenvectors. It is calculated from the two largest eigenvalues of the correlation matrix
"FPC" first principal component order
“hclust" hierarchical clustering order, andbe"hclust.method"
used. for the agglomeration method to
"hclust.method" = "ward", "single", complete", "average", "mcquitty", "median”,"centroid”
addrect = #, rectangle draw based on the hclusters
"alphabet" alphabetical order.
c1.* color legend variables
pos = “n” none
“b” bottom
align “r” rifght
tl.* text legend variables
pos = “n” none
“d” diagonal
“td” top / diagonal
col = text label color
“black”
srt = text label string rotation
diag = FALSE sometimes necessary to “shut off” other values if you want the diagonal blank