persp3D.multiscaleMosum | R Documentation |
3D Visualisation of multiscale MOSUM statistics.
persp3D.multiscaleMosum( x, mosum.args = list(), threshold = c("critical.value", "custom")[1], alpha = 0.1, threshold.function = NULL, pal.name = "YlOrRd", expand = 0.2, theta = 120, phi = 20, xlab = "G", ylab = "time", zlab = "MOSUM", ticktype = "detailed", NAcol = "#800000FF", ... )
x |
a numeric input data vector |
mosum.args |
a named list containing further arguments
to be parsed to the respective |
threshold |
string indicating which threshold should be used for normalisation of
MOSUM statistics computed with different bandwidths.
By default, it is chosen from the asymptotic distribution at the given significance level |
alpha |
a numeric value for the significance level with
|
threshold.function |
function object of form |
pal.name |
a string containing the name of the ColorBrewer palette to be used;
sequential palettes are recommended.
See |
expand |
expansion factor applied to the z coordinates |
theta |
azimuthal angle defining the viewing direction |
phi |
colatitude angle defining the viewing direction |
xlab, ylab, zlab, ticktype |
graphical parameters |
NAcol |
coloring parameter |
... |
further arguments to be passed to function call of persp3D |
The visualisation is based on persp3D.
MOSUM statistics computed with different bandwidths are rescaled
for making them visually comparable.
Rescaling is done either by dividing by their respective critical value at the significance level alpha
(iff threshold = "critical.value"
) or by a custom value given by threshold.function
(iff threshold = "custom"
).
By default, clim
argument of persp3D is given so that the three lightest
(for sequential palettes) hues indicate insignificance of the corresponding MOSUM statistics,
while darker hues indicate the presence of significant changes.
see persp3D
## Not run: # If you run the example be aware that this may take some time print("example may take some time to run") x <- testData(model = "blocks", seed = 1234)$x persp3D.multiscaleMosum(x, mosum.args = list(boundary.extension = FALSE)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.