% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nVenn2.R
\name{setVennOpts}
\alias{setVennOpts}
\title{Set graphical parameters of an nVenn object diagram.}
\usage{
setVennOpts(
  nVennObj,
  opacity = 0.4,
  fontSize = 12,
  lineWidth = 1,
  palette = 0,
  showRegions = TRUE,
  showWeights = TRUE,
  plot = TRUE
)
}
\arguments{
\item{nVennObj}{nVenn object generated with \code{\link[=nVennDiagram]{nVennDiagram()}}.}

\item{opacity}{Opacity of sets, between 0 (completely transparent)
and 1 (completely opaque). Defaults to 0.4.}

\item{fontSize}{Size of the font for the numbers of elements (weights) in each
region. It also indirectly controls the font sizes of the
region descriptions, if shown (showRegions=TRUE). Defaults to
10.}

\item{lineWidth}{Width of the lines defining each set. The value will be
rounded to the closest integer. Defaults to 1.}

\item{palette}{Color palette to use to fill the sets. Integer from 0 to 3.
Defaults to 0.}

\item{showRegions}{If true (default), show region descriptions.}

\item{showWeights}{If true (default), show number of elements in each region.}

\item{plot}{If true (default), plots the diagram after the operation.}
}
\value{
nVennObj with graphical options set.
}
\description{
The function returns an object whose parameters will change the way the
diagram is plotted.
}
\examples{
myv <- nVennDiagram(exampledf)
myv <- setVennOpts(myv, showRegions=FALSE, opacity=0.2, lineWidth=2)
}
