plres2x | R Documentation |
Plot 2 variables, showing a third one with line symbols. Most suitable for showing residuals of a model as this third variable.
plres2x(formula = NULL, reg = NULL, data = NULL, restrict = NULL,
size = 1, xlab = NULL, ylab = NULL, pale = 0.2,
plargs = NULL, ploptions = NULL, assign = TRUE, ...)
formula |
a formula of the form |
reg |
the result of the model fit, from which the residuals are extracted |
data |
the data.frame where the variables are found. Only needed if the variable 'x' or 'y' is not available from the fitting results. |
restrict |
absolute value which truncates the size.
if |
size |
the symbols are scaled so that |
xlab, ylab |
labels for horizontal and vertical axes. Default to the variable names (or labels) |
.
pale |
scalar between 0 and 1: The points are shown in a more
pale color than the segments as determined by
|
plargs |
result of calling |
ploptions |
list of pl options. |
assign |
logical: Should the plargs be stored
in the |
... |
further arguments, passed to |
none.
Werner A. Stahel and Andreas Ruckstuhl
data(d.blast)
t.r <- lm(log10(tremor)~location+log10(distance)+log10(charge),
data=d.blast)
plres2x(~distance+charge, t.r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.