bError | R Documentation |
Visualize the modelled error between backscatter datasets, and optionally, additional predictors, in 2 and 3D.
bError(
b,
interactive = TRUE,
cex = 0.75,
pch = 16,
alpha = 1,
theta = 45,
phi = 0
)
interactive |
Logical. If additional predictors were supplited to bulkshift, should an interactive 3D plot be returned? |
cex |
Size of scatterplot points. |
pch |
Scatterplot point symbols. |
alpha |
Alpha (transparency) of points in scatterplot. |
theta |
Azimuthal perspective on the 3D plot if |
phi |
Colatitude perspective on the 3D plot if |
x |
An (unmodified) list output from bulkshift. |
This function generates 2D or 3D scatterplots from the output of bulkshift using the plot3D and plot3Drgl packages to assist in diagnosing the quality of model fit. Sensible plotting parameters are implemented by default but see those packages for additional plotting options.
The output shows the error between backscatter datasets on the y-axis as a function of the "shift" dataset on the x-axis. If no other predictors were used for bulkshift, this is a 2D scatterplot. If additional predictors were supplied, they are plotted on the z-axis and a 3D scatterplot is generated.
In two dimensions, the backscatter error model is shown as a red line, which should pass through the center of the points. In three dimensions, the error model is shown as a plane.
bb2016 <- rast(system.file('extdata', 'bb2016.tif', package='bulkshift'))
bb2017 <- rast(system.file('extdata', 'bb2017.tif', package='bulkshift'))
bbdepth <- rast(system.file('extdata', 'bbdepth.tif', package='bulkshift'))
#2D example
b <- bulkshift(bb2017, bb2016)
bError(b)
#3D example
b <- bulkshift(bb2017, bb2016, bbdepth)
bError(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.