Skip to content
htmlwidget for frappe charts js library
R JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
docs
img
inst/htmlwidgets
man
vignettes
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
NAMESPACE
README.Rmd
README.md

README.md

rfrappe

Build Status CRAN_Status_Badge

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

You can’t perform that action at this time.