Description Usage Arguments Value Examples
View source: R/plot_diagnostics.R
Using various aesthetics, plot_diagnostics()
can visualise the
performance of all combinations of up to 4 different arguments simultaneously.
1 2 3 4 5 6 | plot_diagnostics(
object,
focused_args = NULL,
average_out_non_focused_args = TRUE,
plot_order = NULL
)
|
object |
an object of class |
focused_args |
the arguments we wish to plot. If |
average_out_non_focused_args |
logical indicating whether we should average over the non-focused arguments |
plot_order |
specifies the order in which we are to assign
arguments to the various aesthetics. If |
a facetted 'ggplot'
object, where:
the columns of the facet are split by the diagnostics
the y-axis corresponds to the values of the diagnostics
the x-axis corresponds to the first argument
the colour scale and grouping correspond to the second argument (if present)
if a third argument is present, facet_grid()
is used, whereby columns correspond to levels of the third argument, and rows correspond to diagnostics. Note that facet_grid()
forces a given row to share a common y-scale, so the plot would be misleading if diagnostics were kept as columns
the shape of the points corresponds to the fourth argument (if present)
1 | ## See ?test_arguments
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.