Visualise probabilistic regression distribution predictions
Source:R/plot_probregr.R
plot_probregr.RdPlots 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$truthis missing).
which_plot:
"random"
(default) - Random selection ofn` distributions are plotted."top"
- Topn` distributions are plotted.
It is unlikely the plot will be interpretable when n >> 5.