% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggnetview_palette.R
\name{scale_color_ggnetview}
\alias{scale_color_ggnetview}
\title{Custom discrete color scale for ggNetView}
\usage{
scale_color_ggnetview(
  classes,
  ...,
  others_label = "Others",
  na_value = "#e0e0e0",
  drop = FALSE
)
}
\arguments{
\item{classes}{Character string.
The discrete class names or factor levels to map to colors.}

\item{...}{Additional arguments passed to `ggplot2::scale_color_manual()`.}

\item{others_label}{Character, (default = "Others").}

\item{na_value}{Color for missing values. Default `"#e0e0e0"`.}

\item{drop}{Logical, passed to `ggplot2::scale_color_manual()`.}
}
\value{
A `ggplot2` scale object.
}
\description{
Custom discrete color scale for ggNetView
}
\examples{
library(ggplot2)
df <- data.frame(
  x = 1:4, y = 1:4,
  group = c("Module1", "Module2", "Module3", "Others")
)
ggplot(df, aes(x, y, color = group)) +
  geom_point(size = 6) +
  scale_color_ggnetview(df$group)

}
