% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nVenn2.R
\name{setVennColors}
\alias{setVennColors}
\title{Change set colors}
\usage{
setVennColors(nVennObj, colorList, plot = TRUE)
}
\arguments{
\item{nVennObj}{nVenn object created with \code{\link[=nVennDiagram]{nVennDiagram()}}.}

\item{colorList}{Vector or list of colors for the sets (see Details).}

\item{plot}{If true (default), plots the diagram after setting the colors.}
}
\value{
nVenn object with changed set colors.
}
\description{
Change set colors
}
\details{
If a vector of svg-formatted colors is provided, they will be used in the same
order. This is a good way to create and use a custom color palette.
If a list is used, the function will call \code{\link[=setVennColor]{setVennColor()}} with the names
in the list.

It is important to notice that each color must be
a valid color in SVG format. The value is not checked, and therefore an
incorrect value may break the plot in \code{\link[=plotVenn]{plotVenn()}} or lead to unexpected
results.
}
\examples{
myv <- nVennDiagram(list(Set1=c("a", "b", "c"), Set2=c("a", "c", "d")), verbose=FALSE)
mypalette <- c("black", "#ffff00", "red")
myv <- setVennColors(myv, mypalette)
}
