plot.list_stats_dm {dRiftDM} | R Documentation |
Plot Multiple Statistics
Description
This function iterates over a list of statistics data, resulting from a call
to calc_stats()
, and subsequently plots each statistic. It allows
for flexible arrangement of multiple plots on a single graphics device.
Usage
## S3 method for class 'list_stats_dm'
plot(x, ..., mfrow = NULL)
Arguments
x |
an object of type |
... |
additional arguments passed to the plot function for each
individual |
mfrow |
an optional numeric vector of length 2, specifying the number of
rows and columns for arranging multiple panels in a single plot
(e.g., |
Details
The plot.list_stats_dm()
function is "merely" a wrapper. All plotting
is done by the respective plot()
methods. When users want more control
over each plot, it is best to call the plot()
function separately for
each statistic in the list (e.g., plot(x$cafs)
; plot(x$quantiles)
)
Value
Nothing (NULL
; invisibly)
See Also
plot.cafs()
, plot.quantiles()
,
plot.delta_funs()
, calc_stats()
Examples
# get a list of statistics for demonstration purpose
all_fits <- get_example_fits_ids()
stats <- calc_stats(all_fits, type = c("cafs", "quantiles"))
# then call the plot function.
plot(stats, mfrow = c(1, 2))