Skip to contents

plot_mosaic() plots a mosaic of plot based on a list of objects of the same class.

Usage

plot_mosaic(x, path = NULL, file_name = "mosaic", ...)

Arguments

x

list of values that should be plotted. See details.

path

path for saving the result. Default to NULL, nothing is saved, graph is displayed

file_name,

name of the elementary component processed. Default to NULL. See details

...

extra parameters that should be used by plot

Value

Nothing useful.

Details

plot_mosaic() will plot a mosaic of plots only if x is a list of objects of the same class, and if there's a plot method for this kind of objects able to handle screen_nav.

  • If x is not a list, plot(x) is directly called.

  • If x is a list with different kind of objects, nothing is plotted.

  • If x does not have a plot method able to handle nav_screen, nothing is plotted.

When x can be plotted as a mosaic, each region of the mosaic will be indicated with the names of x if any, otherwise with an indication built with the class of `x“.

Examples


# Use plot_mosaic to plot side by side "absolute" and "surface" damaging functions
plot_mosaic(adu_t[["damaging"]][c("absolute", "surface")], path = tempdir())
#> [1] "Mosaic plot saved in /tmp/RtmpaJW9id/mosaic.pdf"