View source: R/AuxiliaryFunctions.R
centrality | R Documentation |
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.
plot_centrality(output, ...)
output |
Output object from the easybgm function. Supports also objects from the bgm function of the |
... |
Additional arguments passed onto |
Returns a plot
library(easybgm)
library(bgms)
data <- na.omit(Wenchuan)
fit <- easybgm(data, type = "ordinal",
iter = 1000, # for demonstration only (> 5e4 recommended)
save = TRUE, edge_selection = TRUE,
centrality = TRUE)
plot_centrality(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.