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_markers}
|
|
|
|
\alias{ax_markers}
|
|
|
|
\title{Markers properties}
|
|
|
|
\usage{
|
2019-11-26 10:17:42 +01:00
|
|
|
ax_markers(
|
|
|
|
ax,
|
|
|
|
size = NULL,
|
|
|
|
colors = NULL,
|
|
|
|
strokeColor = NULL,
|
|
|
|
strokeWidth = NULL,
|
|
|
|
strokeOpacity = NULL,
|
|
|
|
fillOpacity = NULL,
|
|
|
|
shape = NULL,
|
|
|
|
radius = NULL,
|
|
|
|
offsetX = NULL,
|
|
|
|
offsetY = NULL,
|
|
|
|
hover = NULL,
|
|
|
|
...
|
|
|
|
)
|
2018-07-31 22:56:51 +02:00
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{ax}{A \code{apexcharts} \code{htmlwidget} object.}
|
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{size}{Numeric. Size of the marker point.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{colors}{Sets the fill color(s) of the marker point.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{strokeColor}{Stroke Color of the marker.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{strokeWidth}{Stroke Size of the marker.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{strokeOpacity}{Opacity of the border around marker.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{fillOpacity}{Opacity of the marker fill color.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{shape}{Shape of the marker. Available Options for shape: \code{"square"} or \code{"circle"}.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{radius}{Numeric. Radius of the marker (applies to square shape)}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{offsetX}{Numeric. Sets the left offset of the marker.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{offsetY}{Numeric. Sets the top offset of the marker.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-08-01 23:02:29 +02:00
|
|
|
\item{hover}{List with item \code{size} (Size of the marker when it is active).}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
|
|
|
\item{...}{Additional parameters.}
|
|
|
|
}
|
|
|
|
\value{
|
|
|
|
A \code{apexcharts} \code{htmlwidget} object.
|
|
|
|
}
|
|
|
|
\description{
|
|
|
|
Markers properties
|
|
|
|
}
|
2018-09-03 23:52:53 +02:00
|
|
|
\note{
|
|
|
|
See \url{https://apexcharts.com/docs/options/markers/}
|
|
|
|
}
|
2019-06-24 15:18:38 +02:00
|
|
|
\examples{
|
|
|
|
data("economics", package = "ggplot2")
|
|
|
|
|
|
|
|
# show points
|
|
|
|
apex(
|
|
|
|
data = tail(economics, 20),
|
|
|
|
type = "line",
|
|
|
|
mapping = aes(x = date, y = uempmed)
|
|
|
|
) \%>\%
|
|
|
|
ax_markers(size = 6)
|
|
|
|
}
|