plot.predx | R Documentation |
Generates diagnostic plots of residuals or plots of fitted versus outcome as appropriate for the particular prediction type and displays prediction type-specific analysis results.
## S3 method for class 'predx'
plot(
x,
type = c("diagnostic", "fit", "regression", "roc", "confusion", "class_p",
"class_stats"),
plot_title = NULL,
plot_subtitle = NULL,
plot_tag = NULL,
signif_digits = 2,
cust_theme = ggplot2::theme_classic(),
...
)
## S3 method for class 'caretx'
plot(
x,
newdata = NULL,
type = c("diagnostic", "fit", "regression", "roc", "confusion", "performance",
"class_p", "class_stats"),
plot_title = NULL,
plot_subtitle = NULL,
plot_tag = NULL,
signif_digits = 2,
cust_theme = ggplot2::theme_classic(),
...
)
x |
a |
type |
type of the plot:
|
plot_title |
|
plot_subtitle |
plot subtitle. If not specified by the user, the sub-title displays statistics specific for the prediction type. |
plot_tag |
plot tag, number of complete observations and events if not specified otherwise by the user. |
signif_digits |
significant digits used for rounding of statistic values presented in the plot. |
cust_theme |
customized plot theme provided by the user. |
... |
extra arguments passed to plotting functions, as specified by the plot type:
|
newdata |
an optional test data set. |
a ggplot graphic with the requested content (predx
) or a list of
ggplot graphics (caretx
, except for performance
plot type).
Kuhn M. Building predictive models in R using the caret package. J Stat Softw (2008) 28:1–26. doi:10.18637/jss.v028.i05
Brier GW. VERIFICATION OF FORECASTS EXPRESSED IN TERMS OF PROBABILITY. Mon Weather Rev (1950) 78:1–3. doi:10.1175/1520-0493(1950)078<0001:vofeit>2.0.co;2
Goldstein-Greenwood J. A Brief on Brier Scores | UVA Library. (2021) Available at: https://library.virginia.edu/data/articles/a-brief-on-brier-scores
Cohen J. A Coefficient of Agreement for Nominal Scales. Educ Psychol Meas (1960) 20:37–46. doi:10.1177/001316446002000104
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.