plot_evals | R Documentation |
This function is used when both evaluated metrics are vector-valued, so a
curve is plotted, parametrized by the two metrics. To plot a single metric
that is vector-valued, pass NULL for metric_name_x. This behaves similarly
to plot(runif(5))
, in which the x-axis variable is simply 1:5
.
If evals is a listofEvals
, then each model will be its own plot.
plot_evals( object, metric_name_x, metric_name_y, use_ggplot2 = TRUE, main, facet_mains, xlab, ylab, xlim, ylim, include_zero = FALSE, legend_location = "topright", method_col = seq(num_methods), method_lty = rep(1, num_methods), method_lwd = rep(1, num_methods), method_pch = rep(NA, num_methods), ... )
object |
an object of class |
metric_name_x |
the name of metric to plot on x axis (or NULL) |
metric_name_y |
the name of metric to plot on y axis |
use_ggplot2 |
whether to use |
main |
title of plot. Default is |
facet_mains |
only to be used when evals is a |
xlab |
the x-axis label (default is |
ylab |
the y-axis label (default is |
xlim |
the limits of the x-axis |
ylim |
the limits of the y-axis |
include_zero |
whether ylim should include 0. Ignored if ylim is passed explicitly |
legend_location |
location of legend. Set to NULL to remove legend. |
method_col |
color to use for each method |
method_lty |
line style to use for each method |
method_lwd |
line thickness to use for each method |
method_pch |
point style to use for each method (default is that no points, only lines are drawn) |
... |
additional arguments to pass to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.