centrality {easybgm}R Documentation

Plot strength centralities and 95% highest density interval

Description

Visualize the strength centralities and their uncertainties. The centrality estimate can be obtained for each sample of the posterior distribution of the association parameters to obtain an estimate of the uncertainty of the strength centrality estimate.

Usage

plot_centrality(output, ...)

Arguments

output

Output object from the easybgm function. Supports also objects from the bgm function of the bgms package.

...

Additional arguments passed onto ggplot2

Value

Returns a plot

Examples



library(easybgm)
library(bgms)

data <- na.omit(Wenchuan)
subdata <- data[1:50, 1:3] #for demonstration choosing a subset to increase computation speed
fit <- easybgm(subdata, type = "ordinal",
                iter = 1000,  # for demonstration only (> 5e4 recommended)
                save = TRUE, centrality = TRUE)

plot_centrality(fit)


[Package easybgm version 0.1.2 Index]