This function creates a plot of various centrality measures for a given
object. The plot can be either a "tiefighter" plot or a "density" plot. The
"tiefighter" plot shows the centrality measures for each variable with
uncertainty bands, while the "density" plot shows the full density of the
centrality measures.
A ggplot object visualizing the centrality measures. For a
"tiefighter" plot, each point represents the mean centrality measure for a
variable, and the bars represent the credible interval. In a "density"
plot, distribution of the centrality measures is visualized.
Arguments
obj
An object containing the centrality measures obtained from
[get_centrality()].
plot_type
A character string specifying the type of plot. Accepts
"tiefighter" or "density". Default is "tiefighter".
cis
A numeric value specifying the credible interval. Must be between
0 and 1 (exclusive). Default is 0.95.