Plots a co_occurrence_network result's node table (term, frequency,
cluster, x, y) as a network diagram: edges (from result$edges) as
line segments underneath, nodes as points sized by term frequency and
coloured by Louvain cluster, with term labels on the larger points only.
Labelling every point on a dense network risks overlap chaos, so only
the top 15 nodes by frequency are labelled, and the full term list stays
available in result$table.
Usage
sframe_plot_cooccurrence_network(result, palette = c("web", "print"))Arguments
- result
A
co_occurrence_networkresult list fromrun_analysis_plan(), carryingtableandedges.- palette
One of
"web"or"print". Seesframe_brand().
Details
Clusters beyond the first 8 (ranked largest first) are folded into a
single "Other" bucket rather than cycling or interpolating a new hue,
per the dataviz skill's categorical-colour guidance, as
.sframe_cluster_palette().
See also
Other Chart functions:
plot.sframe_analysis_results(),
sframe_plot_cooccurrence(),
sframe_plot_correlation_matrix(),
sframe_plot_decision_ranking(),
sframe_plot_dematel_influence(),
sframe_plot_descriptives(),
sframe_plot_efa_loadings(),
sframe_plot_efa_scree(),
sframe_plot_group_comparison(),
sframe_plot_likert_matrix(),
sframe_plot_likert_scale(),
sframe_plot_missingness(),
sframe_plot_ngram_frequency(),
sframe_plot_paired_comparison(),
sframe_plot_quality(),
sframe_plot_regression_diagnostics(),
sframe_plot_reliability(),
sframe_plot_sentiment(),
sframe_plot_term_frequency(),
sframe_plot_topics(),
sframe_plot_validity(),
sframe_plot_variable_distribution(),
sframe_plots,
theme_surveyframe()
Examples
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE) &&
requireNamespace("igraph", quietly = TRUE)) {
demo <- sframe_demo("open_text")
res <- run_analysis_plan(demo$responses, demo$instrument)
sframe_plot_cooccurrence_network(res$RQ6)
}
# }