Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/JohnCoene/charter

Chart.js for R
https://github.com/JohnCoene/charter

chartjs r rstats visualisation

Last synced: about 2 months ago
JSON representation

Chart.js for R

Awesome Lists containing this project

README

        

# charter

![](https://www.chartjs.org/img/chartjs-logo.svg)

Chart.js for R

[![Travis build status](https://travis-ci.com/JohnCoene/charter.svg?branch=master)](https://travis-ci.com/JohnCoene/charter)
[![R build status](https://github.com/JohnCoene/charter/workflows/R-CMD-check/badge.svg)](https://github.com/JohnCoene/charter/actions)

## Installation

You can install the package from Github

```r
# install.packages("remotes")
remotes::install_github("JohnCoene/charter")
```

## Example

``` r
library(charter)

chart(cars, caes(speed, dist)) %>%
c_scatter()

# remotes::install_github("allisonhorst/palmerpenguins")
data(penguins, package = 'palmerpenguins')

chart(data = penguins, caes(flipper_length_mm, body_mass_g)) %>%
c_scatter(caes(color = species, group = species)) %>%
c_colors(c("darkorange","darkorchid","darkcyan"))
```

![](inst/example.png)