apexcharter/man/pie_opts.Rd

47 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-08-03 11:10:36 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apex-options.R
2019-02-17 22:07:04 +01:00
\name{pie_opts}
\alias{pie_opts}
2018-08-03 11:10:36 +02:00
\title{Pie options}
\usage{
2019-02-17 22:07:04 +01:00
pie_opts(size = NULL, donut = NULL, customScale = NULL,
2018-08-08 10:48:03 +02:00
offsetX = NULL, offsetY = NULL, dataLabels = NULL, ...)
2018-08-03 11:10:36 +02:00
}
\arguments{
\item{size}{Numeric. Custom size of the pie which will override the default size calculations.}
2019-07-19 14:11:41 +02:00
\item{donut}{List with two fields \code{size} (Donut / ring size in percentage relative to the total pie area.)
2018-08-03 11:10:36 +02:00
and \code{background} (The background color of the pie).}
\item{customScale}{Numeric. Transform the scale of whole pie/donut overriding the default calculations.}
\item{offsetX}{Numeric. Sets the left offset of the whole pie area.}
\item{offsetY}{Numeric. Sets the top offset of the whole pie area.}
\item{dataLabels}{List with field \code{offset} (Numeric, Offset by which labels will move outside / inside of the donut area)}
\item{...}{Additional parameters.}
}
2019-07-24 12:20:22 +02:00
\value{
A \code{list} of options that can be used in \code{\link{ax_plotOptions}}.
}
2018-08-03 11:10:36 +02:00
\description{
Use these options in \code{\link{ax_plotOptions}}.
}
\note{
See \url{https://apexcharts.com/docs/options/plotoptions/pie/}.
}
2019-07-19 14:11:41 +02:00
\examples{
library(dplyr)
data("mpg", package = "ggplot2")
apex(count(mpg, cyl), aes(cyl, n), type = "donut") \%>\%
ax_plotOptions(
pie = pie_opts(
donut = list(size = "90\%", background = "#BABABA")
)
)
}