% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{getVennRegion}
\alias{getVennRegion}
\title{Gets a list of the elements in a region of the diagram}
\usage{
getVennRegion(nVennObj, n)
}
\arguments{
\item{nVennObj}{nVennR2 object generated with \code{\link[=nVennDiagram]{nVennDiagram()}}.}

\item{n}{Region, either as an integer or as a vector of set names. See Details}
}
\value{
List of set names.
}
\description{
Gets a list of the elements in a region of the diagram
}
\details{
An integer expresses a region by considering its binary representation
in reverse. A 1 in a position means "belongs to" and a 0 or empty position
means "does not belong to". Thus, the binary representation of 19  (10011),
read from right to left, means "region that belongs to
sets 1, 2 and 5 and does not belong to any other set".

A vector of set names expresses a region by giving the sets the region
belongs to. It is understood that the region does not belong to any other
set.
}
\examples{
myv <- nVennDiagram(list(Set1=c("a", "b", "c"), Set2=c("a", "c", "d")), verbose=FALSE)
#Both commands are equivalent:
getVennRegion(myv, 3)
getVennRegion(myv, c("Set1", "Set2"))
}
