Visualises 2D (time-by-time) posterior predictions from a
clusters_results_2d object as a two-panel figure:
summary empirical data
summary posterior predictions
Arguments
- x
A
clusters_results_2dobject (typically returned bytesting_through_timefor 2D time / time-generalisation).- theme
A ggplot2 theme object added to each panel. Defaults to
theme_bw().- palette
Character, a scico palette, see scico::scico_palette_show().
- midpoint
Numeric, the midpoint for diverging color palettes.
- axes_labels
Character vector, the x- and y-axis labels.
- cluster_outline_colour
Character. Colour used to outline cluster cells. Defaults to
"white".- ...
Currently unused. Included for S3 compatibility.
Value
A ggplot object (a patchwork composition of two ggplots).
Details
Significant clusters stored in x$clusters are assumed to be
pointwise (one row per time-by-time cell). Cluster locations are
overlaid as contour (which includes interpolation).
This method relies on patchwork to combine the two panels using +.
Examples
if (FALSE) { # \dontrun{
res2d <- testing_through_time(...)
plot(res2d)
} # }
