apexcharter/man/ax_plotOptions.Rd

72 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-07-31 22:56:51 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apex-utils.R
\name{ax_plotOptions}
\alias{ax_plotOptions}
\title{Specific options for chart}
\usage{
2019-11-26 10:17:42 +01:00
ax_plotOptions(
ax,
bar = NULL,
heatmap = NULL,
radialBar = NULL,
pie = NULL,
2020-04-17 16:46:34 +02:00
bubble = NULL,
2019-11-26 10:17:42 +01:00
...
)
2018-07-31 22:56:51 +02:00
}
\arguments{
\item{ax}{An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.}
2018-07-31 22:56:51 +02:00
2019-02-17 22:07:04 +01:00
\item{bar}{See \code{\link{bar_opts}}.}
2018-07-31 22:56:51 +02:00
2019-02-17 22:07:04 +01:00
\item{heatmap}{See \code{\link{heatmap_opts}}.}
2018-07-31 22:56:51 +02:00
2019-02-17 22:07:04 +01:00
\item{radialBar}{See \code{\link{radialBar_opts}}.}
2018-07-31 22:56:51 +02:00
2019-02-17 22:07:04 +01:00
\item{pie}{See \code{\link{pie_opts}}.}
2018-07-31 22:56:51 +02:00
2020-04-17 16:46:34 +02:00
\item{bubble}{See \code{\link{bubble_opts}}.}
2018-07-31 22:56:51 +02:00
\item{...}{Additional parameters.}
}
\value{
An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.
2018-07-31 22:56:51 +02:00
}
\description{
Specific options for chart
}
2019-06-24 15:18:38 +02:00
\examples{
data("diamonds", package = "ggplot2")
# Stack bar type
apex(
2021-01-15 10:53:51 +01:00
data = diamonds,
mapping = aes(x = cut)
2019-06-24 15:18:38 +02:00
) \%>\%
ax_plotOptions(
bar = bar_opts(endingShape = "rounded", columnWidth = "10\%")
)
# Pie
apex(
2021-01-15 10:53:51 +01:00
data = diamonds,
mapping = aes(x = cut),
2019-06-24 15:18:38 +02:00
type = "pie"
) \%>\%
ax_plotOptions(
pie = pie_opts(customScale = 0.5)
)
# Radial
apexchart() \%>\%
ax_chart(type = "radialBar") \%>\%
ax_plotOptions(
radialBar = radialBar_opts(
hollow = list(size = "70\%")
)
) \%>\%
ax_series(70) \%>\%
ax_labels("Indicator")
}