color_palette_EGA: 'EGA' Color Palettes

Description Usage Arguments Value Author(s) Examples

Description

Color palettes for plotting ggnet2 EGA network plots

Usage

1

Arguments

name

Character. Name of color scheme (see RColorBrewer). Defaults to "polychrome". EGA palettes:

  • "polychrome" Default 20 color palette

  • "blue.ridge1" Palette inspired by the Blue Ridge Mountains

  • "blue.ridge2" Second palette inspired by the Blue Ridge Mountains

  • "rainbow" Rainbow colors. Default for qgraph

  • "rio" Palette inspired by Rio de Janiero, Brazil

  • "itacare" Palette inspired by Itacare, Brazil

For custom colors, enter HEX codes for each dimension in a vector

wc

Vector. A vector representing the community (dimension) membership of each node in the network. NA values mean that the node was disconnected from the network

Value

Vector of colors for community memberships

Author(s)

Hudson Golino <hfg9s at virginia.edu>, Alexander P. Christensen <alexpaulchristensen at gmail.com>

Examples

1
2
3
4
5
6
7
8
# Default
color_palette_EGA(name = "polychrome", wc = ega.wmt$wc)

# Blue Ridge Moutains 1
color_palette_EGA(name = "blue.ridge1", wc = ega.wmt$wc)

# Custom
color_palette_EGA(name = "#7FD1B9", wc = ega.wmt$wc)

EGAnet documentation built on Feb. 17, 2021, 1:06 a.m.