From 9d5158c0247691092673f6202fe6e153be4abc37 Mon Sep 17 00:00:00 2001 From: pvictor Date: Sat, 13 Jun 2020 13:04:23 +0200 Subject: [PATCH] updated NEWS and vignette --- NEWS.md | 1 + man/candles.Rd | 26 ++++++++++++++++++++++++++ vignettes/apexcharter.Rmd | 14 ++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 man/candles.Rd diff --git a/NEWS.md b/NEWS.md index a2b8052..c794f4a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,7 @@ apexcharter 0.1.5 ================== * Updated ApexCharts.js to 3.18.1 +* Support for candlestick charts in `apex()`. * `apex()` has a new argument `synchronize` to easily synchronize charts together. * `apex()` has new charts type: area-spline, area-step and step. diff --git a/man/candles.Rd b/man/candles.Rd new file mode 100644 index 0000000..687125d --- /dev/null +++ b/man/candles.Rd @@ -0,0 +1,26 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/data.R +\docType{data} +\name{candles} +\alias{candles} +\title{Candlestick demo data} +\format{ +A data frame with 60 observations and the following 5 variables: +\describe{ +\item{\code{datetime}}{Timestamp.} +\item{\code{open}}{Open value.} +\item{\code{high}}{Highest value.} +\item{\code{low}}{Lowest value.} +\item{\code{close}}{Close value.} +} +} +\source{ +Apexcharts (\url{https://apexcharts.com/javascript-chart-demos/candlestick-charts/basic/}) +} +\usage{ +candles +} +\description{ +Candlestick demo data +} +\keyword{datasets} diff --git a/vignettes/apexcharter.Rmd b/vignettes/apexcharter.Rmd index a64c013..dfe8f3d 100644 --- a/vignettes/apexcharter.Rmd +++ b/vignettes/apexcharter.Rmd @@ -210,4 +210,18 @@ apex( ``` +## Candlestick + +Create a candlestick chart with: + +```{r} +apex( + candles, + aes(x = datetime, open = open, close = close, low = low, high = high), + type = "candlestick" +) +``` + + +