Skip to contents

Custom discrete color scale for ggNetView

Usage

scale_color_ggnetview(
  classes,
  ...,
  others_label = "Others",
  na_value = "#e0e0e0",
  drop = FALSE
)

Arguments

classes

Character string. The discrete class names or factor levels to map to colors.

...

Additional arguments passed to `ggplot2::scale_color_manual()`.

others_label

Character, (default = "Others").

na_value

Color for missing values. Default `"#e0e0e0"`.

drop

Logical, passed to `ggplot2::scale_color_manual()`.

Value

A `ggplot2` scale object.

Examples

NULL
#> NULL