scattersplot {npsp} | R Documentation |
Exploratory scatter plots
Description
Draws (in a 2 by 2 layout) the following plots: a scatter plot with a color scale, the scatter plots of the response against the (first two) coordinates and the histogram of the response values.
Usage
scattersplot(x, ...)
## Default S3 method:
scattersplot(
x,
z,
main,
xlab,
ylab,
zlab,
col = hot.colors(128),
lowess = TRUE,
density = FALSE,
omd = c(0.05, 0.95, 0.01, 0.95),
...
)
## S3 method for class 'SpatialPointsDataFrame'
scattersplot(
x,
data.ind = 1,
main,
xlab,
ylab,
zlab,
col = hot.colors(128),
lowess = TRUE,
density = FALSE,
omd = c(0.05, 0.95, 0.01, 0.95),
...
)
Arguments
x |
object used to select a method. |
... |
additional graphical parameters (to be passed to |
z |
vector of data (response variable). |
main |
an overall title for the plot. |
xlab |
a title for the axis corresponding to the first coordinate. |
ylab |
a title for the axis corresponding to the second coordinate. |
zlab |
a title for the axis corresponding to the response. |
col |
color table used to set up the color scale (see |
lowess |
logical. If |
density |
logical. If |
omd |
a vector of the form |
data.ind |
integer (or character) with the index (or name) of the data component. |
Details
Standard generic function with a default method, in which argument x
is a matrix with the spatial coordinates (each row is a point).
scattersplot.SpatialPointsDataFrame
sets default values for some of the arguments
from attributes of the object x
(if present; see e.g. precipitation
).
Value
No return value, called for side effects (generate the plot).
See Also
splot
, spoints
, lowess
,
density