n.plot | R Documentation |
A utility function which basically calls plot(*, type="n")
and text
. To have names or numbers instead of points
in a plot is useful for identifaction, e.g., in a residual plot, see
also TA.plot
.
n.plot(x, y = NULL, nam = NULL, abbr = n >= 20 || max(nchar(nam))>=8,
xlab = NULL, ylab = NULL, log = "",
cex = par("cex"), col = par("col"), ...)
x , y |
coordinates at which to plot. If |
nam |
the labels to plot at each (x,y). Per default, these
taken from the data |
abbr |
logical indicating if the |
xlab , ylab |
labels for the x- and y- axis, the latter being empty by default. |
log |
character specifying if log scaled axes should be used, see
|
cex |
plotting character expansion, see |
col |
color to use for |
... |
further arguments to be passed to the |
invisibly, a character vector with the labels used.
Martin Maechler, since 1992
plot.default
, text
.
n.plot(1:20, cumsum(rnorm(20)))
data(cars)
with(cars, n.plot(speed, dist, cex = 0.8, col = "forest green"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.