% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggnetview_palette.R
\name{get_palette}
\alias{get_palette}
\title{Generate a named color palette for discrete classes}
\usage{
get_palette(classes, others_label = "Others")
}
\arguments{
\item{classes}{Character string.
The discrete class names or factor levels to map to colors.}

\item{others_label}{Character, (default = "Others").}
}
\value{
A named character vector whose names are the discrete classes
and whose values are hex colors. If `others_label` appears in `classes`,
it is always mapped to a neutral grey so "Others" has a stable color.
}
\description{
Generate a named color palette for discrete classes
}
\examples{
get_palette(c("Module1", "Module2", "Module3"))
get_palette(c("Module1", "Module2", "Others"))

}
