plot.stats_dm_list | R Documentation |
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.
## S3 method for class 'stats_dm_list'
plot(x, ..., mfrow = NULL)
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., |
The plot.stats_dm_list()
function is "merely" a wrapper. All plotting
is done by the respective plot()
methods. If dRiftDM
doesn't provide a
plot()
method for an object stored in x
, the respective entry is
skipped and a message is displayed.
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)
)
Nothing (NULL
; invisibly)
plot.cafs()
, plot.quantiles()
,
plot.delta_funs()
, calc_stats()
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.