Visualise probabilistic regression distribution predictions
Source:R/plot_probregr.R
plot_probregr.Rd
Plots probability density functions from n
predicted probability
distributions.
Arguments
- p
(PredictionRegr)
With at least columndistr
.- n
(
integer(1)
)
Number of predictions to plot.- type
(
character(1)
)
One of"point"
(default),"line"
,"both"
,"none"
.- which_plot
(
character(1)
)
One of"random"
(default) or"top"
. See details.- rm_zero
(
logical(1)
)
IfTRUE
(default) does not plot points wheref(x) = 0
.- ...
Unused
Details
type
:
"point"
(default) - Truth plotted as point (truth, predicted_pdf(truth))"line"
- Truth plotted as vertical line intercepting x-axis at the truth."both"
- Plots both the above options."none"
- Truth not plotted (default ifp$truth
is missing).
which_plot
:
"random"
(default) - Random selection of
n` distributions are plotted."top"
- Top
n` distributions are plotted.
It is unlikely the plot will be interpretable when n >> 5
.