View source: R/color_palette_EGA.R
color_palette_EGA | R Documentation |
EGA
Color PalettesColor palettes for plotting ggnet2
EGA
network plots
color_palette_EGA(
name = c("polychrome", "blue.ridge1", "blue.ridge2", "rainbow", "rio", "itacare",
"grayscale"),
wc,
sorted = FALSE
)
name |
Character.
Name of color scheme (see
For custom colors, enter HEX codes for each dimension in a vector |
wc |
Numeric vector.
A vector representing the community (dimension) membership
of each node in the network. |
sorted |
Boolean.
Should colors be sorted by |
Vector of colors for community memberships
Hudson Golino <hfg9s at virginia.edu>, Alexander P. Christensen <alexpaulchristensen at gmail.com>
plot.EGAnet
for plot usage in EGAnet
# 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 = c("#7FD1B9", "#24547e"), wc = ega.wmt$wc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.