Skip to content

JohnCoene/charter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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