/charter

Chart.js for R

Primary LanguageROtherNOASSERTION

charter

Chart.js for R

Travis build status R build status

Installation

You can install the package from Github

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

Example

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"))