theme_net: Theme for network visualization

Description Arguments Examples

Description

Themes set the general aspect of the plot such as the colour of the background, gridlines, the size and colour of fonts. theme_net provides access to the regular ggplot2 theme, but removes any background, axes, and ensures an aspect ratio of 1 for better viewing of networks and graphs.

Arguments

base_size

base font size

base_family

base font family

Examples

1
2
3
4
5
library(ggplot2)
data(blood)
p <- ggplot(data = blood$edges, aes(from_id = from, to_id = to))
p + geom_net()
p + geom_net() + theme_net()

geomnet documentation built on Nov. 26, 2020, 5:07 p.m.