plot.dsm.var | R Documentation |
Note that the prediction data set must have x
and y
columns even if
these were not used in the model.
## S3 method for class 'dsm.var' plot( x, poly = NULL, limits = NULL, breaks = NULL, legend.breaks = NULL, xlab = "x", ylab = "y", observations = TRUE, plot = TRUE, boxplot.coef = 1.5, x.name = "x", y.name = "y", gg.grad = NULL, ... )
x |
a |
poly |
a |
limits |
limits for the fill colours |
breaks |
breaks for the colour fill |
legend.breaks |
breaks as they should be displayed |
xlab |
label for the |
ylab |
label for the |
observations |
should observations be plotted? |
plot |
actually plot the map, or just return a |
boxplot.coef |
control trimming (as in
|
x.name |
name of the variable to plot as the |
y.name |
name of the variable to plot as the |
gg.grad |
optional |
... |
any other arguments |
a plot
In order to get plotting to work with dsm_var_prop
and
dsm_var_gam
, one must first format the data correctly
since these functions are designed to compute very general summaries. One
summary is calculated for each element of the list pred
supplied to
dsm_var_prop
and dsm_var_gam
.
For a plot of uncertainty over a prediction grid, pred
(a data.frame
),
say, we can create the correct format by simply using pred.new <- split(pred,1:nrow(pred))
.
David L. Miller
dsm_var_prop
, dsm_var_gam
,
dsm_var_movblk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.