Skip to contents

This function enables all plots to be quickly, easily and consistently themed. This is achieved by setting a theme option that enables the appropriate palette to be used for all autograph-consistent plotting methods.

The following themes are currently available: default, bw, iheid, ethz, uzh, rug, unibe, crisp, neon, rainbow.

Usage

stocnet_theme(theme = NULL)

Arguments

theme

String naming a theme. By default "default". This string can be capitalised or not.

Value

This function sets the theme and palette(s) to be used across all stocnet packages. The palettes are written to options and held there.

Examples

stocnet_theme("default")
#>  Theme set to default.
plot(manynet::node_degree(ison_karateka))

stocnet_theme("rug")
#>  Theme set to rug.
plot(manynet::node_degree(ison_karateka))