apexcharter/man/pie_opts.Rd

52 lines
1.4 KiB
Plaintext
Raw Permalink 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-11-26 10:17:42 +01:00
pie_opts(
size = NULL,
donut = NULL,
customScale = NULL,
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{
2023-02-22 10:45:29 +01:00
A \code{list} of options that can be used in \code{\link[=ax_plotOptions]{ax_plotOptions()}}.
2019-07-24 12:20:22 +02:00
}
2018-08-03 11:10:36 +02:00
\description{
2023-02-22 10:45:29 +01:00
Use these options in \code{\link[=ax_plotOptions]{ax_plotOptions()}}.
2018-08-03 11:10:36 +02:00
}
\note{
See \url{https://apexcharts.com/docs/options/plotoptions/pie/}.
}
2019-07-19 14:11:41 +02:00
\examples{
data("mpg", package = "ggplot2")
2021-01-15 10:53:51 +01:00
apex(mpg, aes(cyl), type = "donut") \%>\%
2019-07-19 14:11:41 +02:00
ax_plotOptions(
pie = pie_opts(
donut = list(size = "90\%", background = "#BABABA")
)
)
}