This function provides plots for combined global envelopes.
Note that the argument coord is as for the single global envelopes
(see plot.global_envelope), but its dimensions should match
the dimensions of x[[i]] (for all i). That is, the plots with coord
are currently provided only for the case where the components of the object x
have the same r. This is suitable in particular for the functional ANOVA and
functional general linear models (see graph.fanova, graph.flm,
frank.fanova, frank.flm) made for images.
# S3 method for combined_global_envelope
plot(
x,
main,
ylim = NULL,
xlab,
ylab,
coord = NULL,
color_outside = TRUE,
env.col = 1,
base_size = 12,
labels = NULL,
add = FALSE,
digits = 3,
level = 1,
ncol = 2 + 1 * (length(x) == 3),
nticks = 5,
legend = TRUE,
...
)An 'combined_global_envelope' object
See plot.default. A sensible default exists.
See plot.default. A sensible default exists.
See plot.default. A sensible default exists.
See plot.default. A sensible default exists.
A data frame of the spatial coordinates where the data have been observed.
nrow(coord) should match the length of x$r, and the names of the columns
should be either "x", "y", "width", "height" or "xmin", "ymin", "xmax", "ymax".
Here x and y should give the (center) coordinates of the observed data,
width and height give the size of the pixel places at (x,y) (most often constants).
The xmin, ymin, xmax, ymax give an alternative way to specify the pixels where the data have
been observed, namely the corner locations of each pixel.
If coord is provided, then a two-dimensional plot is made instead of 1-dimensional default
plot.
Logical. Whether to color the places where the data function goes
outside the envelope. Currently red color is used. Relevant only for plot_style = "basic".
The color for the envelope lines (or dotplot arrows). Default 1 (black).
Base font size, to be passed to theme style when plot_style = "ggplot2".
A character vector of suitable length.
If dotplot = TRUE (for the level 2 test), then labels for the tests at x-axis.
Otherwise labels for the separate plots.
Whether to add the plot to an existing plot (TRUE) or to draw a new plot (FALSE).
Not available for plot_style = "ggplot2".
The number of digits used for printing the p-value or p-interval in the main, if using the default main.
1 or 2. In the case of two-step combined tests (with several test functions), two different plots are available: 1 for plotting the combined global envelopes (default and most often wanted) or 2 for plotting the second level test result.
The maximum number of columns for the figures. Default 2 or 3, if the length of x equals 3. (Relates to the number of curve_sets that have been combined.)
The number of ticks on the xaxis.
Logical. If FALSE, then the legend is removed from the "ggplot2" style plot.