powered by
predictability
Plot predictability Objects
# S3 method for predictability plot( x, type = "error_bar", cred = 0.95, alpha = 0.5, scale = 1, width = 0, size = 1, color = "blue", ... )
An object of class ggplot.
ggplot
An object of class predictability
Character string. Which type of plot ? The options are "error_bar" or "ridgeline" (defaults to "error_bar").
"error_bar"
"ridgeline"
Numeric. The credible interval width for summarizing the posterior distributions (defaults to 0.95; must be between 0 and 1).
Numeric. Transparancey of the ridges
Numeric. This controls the overlap of densities for type = "ridgeline" (defaults to 1).
type = "ridgeline"
Numeric. The width of error bar ends (defaults to 0) for type = "error_bar".
0
type = "error_bar"
Numeric. The size for the points (defaults to 2) for type = "error_bar".
2
Character string. What color for the point (type = "error_bar") or tail region (type = "ridgeline" ) ? Defaults to "blue".
"blue"
Currently ignored.
# \donttest{ Y <- ptsd[,1:5] fit <- explore(Y, iter = 250, progress = FALSE) r2 <- predictability(fit, iter = 250, progress = FALSE) plot(r2) # }
Run the code above in your browser using DataLab