Learn R Programming

textAnnotatoR (version 1.0.1)

generate_network_visualization: Generate network visualization for code co-occurrence

Description

Creates a network plot showing relationships between codes based on co-occurrence patterns. Node sizes reflect total co-occurrences, edge thickness shows Jaccard similarity, and edge opacity indicates phi coefficient magnitude.

Usage

generate_network_visualization(co_matrix, jaccard_matrix, phi_matrix, codes)

Value

A recordedplot object containing the network visualization

Arguments

co_matrix

Matrix of raw co-occurrence counts between codes

jaccard_matrix

Matrix of Jaccard similarity coefficients

phi_matrix

Matrix of phi coefficients

codes

Character vector of code names