prints a summary of the components available in a netify_plot_components object. this helps users understand what layers and elements are available for manual plot construction.
Usage
# S3 method for class 'netify_plot_components'
print(x, ...)Examples
# \donttest{
# create plot components
mat <- matrix(c(NA, 1, 0, 0, NA, 1, 1, 0, NA), 3, 3,
dimnames = list(c("alice", "bob", "carol"),
c("alice", "bob", "carol")))
net <- new_netify(mat, symmetric = FALSE)
comp <- plot(net, return_components = TRUE)
# print summary
print(comp)
#>
#> ── Netify plot components ──
#>
#> • Base plot: ggplot object
#> • Edges: geom_segment/geom_curve layer
#> • Points: geom_point layer
#> • Text: geom_text layer
#> • Theme: theme_netify
#> ℹ Use `assemble_netify_plot()` to build or construct manually with
#> `netify_edge()`, `netify_node()`, etc.
# }