rfrappe
is an R htmlwidget for the Frappe Charts JavaScript library. Frappe Charts creates simple, responsive, modern SVG charts with zero dependencies.
Above gif copied from the Frappe Charts README.
devtools::install_github("merlinoa/rfrappe")
library(rfrappe) data <- list( labels = c("12am-3am", "3am-6pm", "6am-9am", "9am-12am", "12pm-3pm", "3pm-6pm", "6pm-9pm", "9am-12am"), datasets = list( list( title = "Some Data", color = "light-blue", values = c(25, 40, 30, 35, 8, 52, 17, -4) ), list( title = "Another Set", color = "violet", values = c(25, 50, -10, 15, 18, 32, 27, 14) ) ) ) rfrappe(list( title = "My Awesome Bar Chart", data = data, type = "bar" ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.