Skip to contents

Configures default aesthetics for ggraph network visualizations by applying custom edge defaults and removing Y-axis ticks and labels. Unlike [ggraph::set_graph_style()], this function preserves the current ggastrum theme (including the faint solaris grid), so network plots retain the same visual style as other ggastrum plots.

Usage

set_ggraph_defaults(edge_width = 0.4, edge_alpha = 0.4, edge_colour = "grey60")

Arguments

edge_width

Default edge width (override, default: 0.4)

edge_alpha

Default edge alpha transparency (override, default: 0.4)

edge_colour

Default edge colour (override, default: "grey60")

Value

Invisible NULL, called for side effects

Details

Node defaults are controlled through the theme system (via `set_theme()`) rather than geom defaults, as `geom_node_point()` inherits from ggplot2's `GeomPoint`.

Author

Dustin Stoltz