apexcharter/man/bar_opts.Rd

58 lines
1.5 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{bar_opts}
\alias{bar_opts}
2018-08-03 11:10:36 +02:00
\title{Bar options}
\usage{
2019-11-26 10:17:42 +01:00
bar_opts(
horizontal = NULL,
endingShape = NULL,
columnWidth = NULL,
barHeight = NULL,
distributed = NULL,
colors = NULL,
dataLabels = NULL,
...
)
2018-08-03 11:10:36 +02:00
}
\arguments{
2019-07-15 11:28:48 +02:00
\item{horizontal}{Logical. This option will turn a column chart into a horizontal bar chart.}
2018-08-03 11:10:36 +02:00
2019-06-24 15:18:38 +02:00
\item{endingShape}{Available Options: \code{"flat"} or \code{"rounded"}.}
2018-08-03 11:10:36 +02:00
\item{columnWidth}{In column charts, columnWidth is the percentage of the available width in the grid-rect.}
\item{barHeight}{In horizontal bar charts, barHeight is the percentage of the available height in the grid-rect.}
\item{distributed}{Logical. Turn this option to make the bars discrete. Each value indicates one bar per series.}
2019-02-17 22:07:04 +01:00
\item{colors}{A list of parameters.}
2018-08-03 11:10:36 +02:00
\item{dataLabels}{List with fields \code{position} (available options: \code{"top"}, \code{"center"} or \code{"bottom"})}
\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/bar/}.
}
2019-07-19 14:11:41 +02:00
\examples{
data("mpg", package = "ggplot2")
2021-01-15 10:53:51 +01:00
apex(mpg, aes(manufacturer)) \%>\%
2019-07-19 14:11:41 +02:00
ax_plotOptions(
bar = bar_opts(
endingShape = "rounded",
columnWidth = 100,
distributed = TRUE
)
)
}