| CographTheme | R Documentation |
Class for managing visual themes for network plots.
A CographTheme R6 object.
nameTheme name.
new()Create a new CographTheme object.
CographTheme$new( name = "custom", background = "white", node_fill = "#4A90D9", node_border = "#2C5AA0", node_border_width = 1, edge_color = "gray50", edge_positive_color = "#2E7D32", edge_negative_color = "#C62828", edge_width = 1, label_color = "black", label_size = 10, title_color = "black", title_size = 14, legend_background = "white" )
nameTheme name (optional).
backgroundBackground color.
node_fillDefault node fill color.
node_borderDefault node border color.
node_border_widthDefault node border width.
edge_colorDefault edge color.
edge_positive_colorColor for positive edge weights.
edge_negative_colorColor for negative edge weights.
edge_widthDefault edge width.
label_colorDefault label color.
label_sizeDefault label size.
title_colorTitle color.
title_sizeTitle size.
legend_backgroundLegend background color.
A new CographTheme object.
get()Get a theme parameter.
CographTheme$get(name)
nameParameter name.
Parameter value.
set()Set a theme parameter.
CographTheme$set(name, value)
nameParameter name.
valueParameter value.
get_all()Get all theme parameters.
CographTheme$get_all()
List of parameters.
merge()Merge with another theme.
CographTheme$merge(other)
otherAnother CographTheme or list of parameters.
A new merged CographTheme.
clone_theme()Clone the theme.
CographTheme$clone_theme()
A new CographTheme.
print()Print theme summary.
CographTheme$print()
clone()The objects of this class are cloneable with this method.
CographTheme$clone(deep = FALSE)
deepWhether to make a deep clone.
# Create a custom theme
theme <- CographTheme$new(
background = "white",
node_fill = "steelblue",
edge_color = "gray60"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.