Learn R Programming

migraph (version 0.8.2)

blockmodel_visualisation: ggplot2-based plotting of blockmodel results

Description

ggplot2-based plotting of blockmodel results

Plots for deciding on the number of network clusters

Usage

# S3 method for blockmodel
plot(x, ...)

ggtree(hc, k = NULL)

ggidentify_clusters(hc, mat, method = "elbow")

Arguments

x

A blockmodel-class object.

...

Additional arguments passed on to ggplot2.

hc

a hierarchical cluster object

k

number of clusters. By default NULL, but, if specified, ggtree will color branches and add a line to indicate where the corresponding cluster cut would be.

mat

the matrix

method

only "elbow" is currently implemented.

Examples

Run this code
# NOT RUN {
usa_concor <- blockmodel_concor(mpn_elite_usa_advice)
plot(usa_concor)
res <- cluster_regular_equivalence(mpn_elite_mex)
ggtree(res, 4)
ggidentify_clusters(res, t(node_triad_census(mpn_elite_mex)))
# }

Run the code above in your browser using DataLab