rfrappe icon indicating copy to clipboard operation
rfrappe copied to clipboard

htmlwidget for frappe charts js library

rfrappe

Build Status

rfrappe is an R htmlwidget for the Frappe Charts JavaScript library. Frappe Charts creates simple, responsive, modern SVG charts with zero dependencies.

Example

Frappe Example

Above gif copied from the Frappe Charts README.

Installation

devtools::install_github("merlinoa/rfrappe")

Usage

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