View source: R/prtree_main_methods.R
| plot.prtree | R Documentation |
Provides visualization of a fitted Probabilistic Regression Tree model.
Note that the original response vector y is only required for plots 1-4.
Plot 5 (terminal node probabilities) can be generated without y.
## S3 method for class 'prtree'
plot(x, y = NULL, which = NULL, ncol = NULL, ...)
x |
An object of class |
y |
Original response vector used to fit the model. Required only for plots 1-4 (Fitted vs Observed, Residuals, Histogram, Q-Q plot). Can be omitted if only plot 5 is requested. |
which |
Which plots to produce. Options are:
If |
ncol |
Integer. Number of columns in the plot layout. If |
... |
Further arguments passed to ggplot2 (e.g., |
Invisibly returns the original object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.