plot-methods | R Documentation |
The plot
method objects of class
psi_func
simply visualizes the
\rho()
, \psi()
, and weight functions and their
derivatives.
## S4 method for signature 'psi_func'
plot(x, y,
which = c("rho", "psi", "Dpsi", "wgt", "Dwgt"),
main = "full",
col = c("black", "red3", "blue3", "dark green", "light green"),
leg.loc = "right", ...)
x |
object of class |
y |
(optional) vector of abscissa values (to plot object at). |
which |
|
main |
string or logical indicating the kind of plot title;
either |
col |
colors to be used for the different slots |
leg.loc |
legend placement, see also |
... |
passed to |
An earlier version had argument shortMain
which is deprecated
now. Use main = "short"
instead of shortMain = TRUE
.
If you want to specify your own title, use main=FALSE
, and a
subsequent title(...)
call.
psiFunc()
and the class
psi_func
.
plot(huberPsi)
plot(huberPsi, which=c("psi", "Dpsi", "wgt"),
main="short", leg = "topleft")
plot(hampelPsi)
## Plotting aspect ratio = 1:1 :
plot(hampelPsi, asp=1, main="short",
which = c("psi", "Dpsi", "wgt", "Dwgt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.