apexcharter/man/heatmap_opts.Rd

61 lines
1.3 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{heatmap_opts}
\alias{heatmap_opts}
2018-08-03 11:10:36 +02:00
\title{Heatmap options}
\usage{
2019-11-26 10:17:42 +01:00
heatmap_opts(
radius = NULL,
enableShades = NULL,
shadeIntensity = NULL,
colorScale = NULL,
...
)
2018-08-03 11:10:36 +02:00
}
\arguments{
\item{radius}{Numeric. Radius of the rectangle inside heatmap.}
\item{enableShades}{Logical. Enable different shades of color depending on the value}
\item{shadeIntensity}{Numeric \code{[0,1]}. The intensity of the shades generated for each value.}
\item{colorScale}{List.}
\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/heatmap/}.
}
2019-07-19 14:11:41 +02:00
\examples{
df <- expand.grid(
month = month.name,
person = c("Obi-Wan", "Luke", "Anakin", "Leia")
)
df$value <- sample(0:1, nrow(df), TRUE)
apex(
data = df,
mapping = aes(x = month, y = person, fill = value),
type = "heatmap"
) \%>\%
ax_plotOptions(
heatmap = heatmap_opts(
enableShades = FALSE,
colorScale = list(
ranges = list(
list(from = 0, to = 0.5, color = "#FF0000"),
list(from = 0.5, to = 1, color = "#088A08")
)
)
)
)
}