Creates a network graph visualization showing the structure of treatment comparisons in a network meta-analysis.
Arguments
- nma_result
Result from network_meta() or data with network structure
- node_size
Character. Size nodes by "equal", "n_studies", or "n_patients". Default: "equal"
- edge_width
Character. Width edges by "equal" or "n_studies". Default: "n_studies"
- show_labels
Logical. Show edge labels with study counts. Default: TRUE
- highlight_ref
Logical. Highlight reference treatment. Default: TRUE
- title
Character. Plot title. Default: "Network Geometry"
- layout
Character. Layout algorithm: "circle", "star", "auto". Default: "circle"
- palette
Character vector. Node colors. Default: NULL
- base_size
Numeric. Base font size. Default: 11
Examples
# Network geometry visualization
nma_data <- data.frame(
study = c("S1", "S2", "S3"),
treat1 = c("A", "B", "A"),
treat2 = c("B", "C", "C"),
effect = log(c(0.75, 0.90, 0.80)),
se = c(0.12, 0.15, 0.18)
)
nma_result <- network_meta(nma_data, effect_measure = "hr")
plot <- create_network_plot(nma_result, title = "Treatment Network")
plot@type
#> [1] "network_geometry"
