fixed typo and updated examples

This commit is contained in:
pvictor 2021-04-28 09:01:33 +02:00
parent e3efecf7f8
commit 1e42e587af
No known key found for this signature in database
GPG Key ID: 31124C9F3F9268B8
11 changed files with 341 additions and 336 deletions

View File

@ -50,7 +50,7 @@ apexcharter 0.1.5
## New functions
* `spark_box` to create boxes with sparkline, see corresponding vignette for more details.
* `add_shade()`, `add_shade_weekend()`, `add_event()` to add annotations on timeries charts.
* `add_shade()`, `add_shade_weekend()`, `add_event()` to add annotations on time-series charts.
* `add_hline()`, `add_vline()`, `add_point()` to add annotations on charts.
* `set_tooltip_fixed()` to fix tooltip in specific position.

View File

@ -40,7 +40,7 @@
#' @format A data frame with 120 observations and the following 3 variables:
#' \describe{
#' \item{\code{date}}{date.}
#' \item{\code{type}}{Type of data : realised or forecast.}
#' \item{\code{type}}{Type of data : realized or forecast.}
#' \item{\code{value}}{Value in giga-watt per hour.}
#' }
#' @source Rte (Electricity Transmission Network in France) (\url{https://data.rte-france.com/})

View File

@ -5,7 +5,6 @@
<!-- badges: start -->
[![version](http://www.r-pkg.org/badges/version/apexcharter)](https://CRAN.R-project.org/package=apexcharter)
[![cran checks](https://cranchecks.info/badges/worst/apexcharter)](https://cranchecks.info/pkgs/apexcharter)
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![R build status](https://github.com/dreamRs/apexcharter/workflows/R-CMD-check/badge.svg)](https://github.com/dreamRs/apexcharter/actions)
[![Codecov test coverage](https://codecov.io/gh/dreamRs/apexcharter/branch/master/graph/badge.svg)](https://codecov.io/gh/dreamRs/apexcharter?branch=master)
<!-- badges: end -->

View File

@ -1,14 +1,13 @@
## Test environments
* local OS Widows 10 install, R 3.6.3
* ubuntu 16.04, Windows 10, macOS (on GitHub Actions), R 4.0.2
* local OS Widows 10 install, R 4.0.3
* ubuntu 16.04, Windows 10, macOS (on GitHub Actions), R 4.0.5
* win-builder (devel and release)
## R CMD check results
0 errors | 0 warnings | 0 note
Updated JavaScript dependencies to include new chart type.
1 reverse dependencies checked, no new problems.
Updated JavaScript dependencies and new features.
Thank you!
Victor

View File

@ -1,3 +1,4 @@
if (interactive()) {
library(apexcharter)
data("mpg", package = "ggplot2")
@ -18,3 +19,4 @@ apex_grid(
ncol = 3, nrow = 2,
height = "600px"
)
}

View File

@ -1,6 +1,6 @@
### Grid --------
if (interactive()) {
library(apexcharter)
# Scatter ----
@ -47,4 +47,4 @@ apex(mpg, aes(displ, cty), type = "scatter") %>%
) %>%
ax_facet_grid(rows = vars(drv), cols = vars(year))
}

View File

@ -1,4 +1,6 @@
### Wrap --------
if (interactive()) {
library(apexcharter)
# Scatter ----
@ -96,4 +98,4 @@ apex(refugees, aes(continent_origin, n), type = "column") %>%
) %>%
ax_facet_wrap(vars(population_type), ncol = 2)
}

View File

@ -49,6 +49,8 @@ Facet wrap for ApexCharts
}
\examples{
### Wrap --------
if (interactive()) {
library(apexcharter)
# Scatter ----
@ -146,10 +148,10 @@ apex(refugees, aes(continent_origin, n), type = "column") \%>\%
) \%>\%
ax_facet_wrap(vars(population_type), ncol = 2)
}
### Grid --------
if (interactive()) {
library(apexcharter)
# Scatter ----
@ -196,5 +198,5 @@ apex(mpg, aes(displ, cty), type = "scatter") \%>\%
) \%>\%
ax_facet_grid(rows = vars(drv), cols = vars(year))
}
}

View File

@ -40,6 +40,7 @@ Create a grid of ApexCharts
You have to provide either height for the grid or individual chart height to make it work.
}
\examples{
if (interactive()) {
library(apexcharter)
data("mpg", package = "ggplot2")
@ -61,3 +62,4 @@ apex_grid(
height = "600px"
)
}
}

View File

@ -8,7 +8,7 @@
A data frame with 120 observations and the following 3 variables:
\describe{
\item{\code{date}}{date.}
\item{\code{type}}{Type of data : realised or forecast.}
\item{\code{type}}{Type of data : realized or forecast.}
\item{\code{value}}{Value in giga-watt per hour.}
}
}

View File

@ -19,8 +19,7 @@ knitr::opts_chunk$set(
library(apexcharter)
```
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)
Create grid of charts with ApexCharts, currently it's possible to: