Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/merlinoa/rfrappe

htmlwidget for frappe charts js library
https://github.com/merlinoa/rfrappe

charts frappe htmlwidgets r shiny

Last synced: 27 days ago
JSON representation

htmlwidget for frappe charts js library

Awesome Lists containing this project

README

        

---
output: github_document
---

# rfrappe

[![Build Status](https://travis-ci.org/merlinoa/rfrappe.svg?branch=master)](https://travis-ci.org/merlinoa/rfrappe)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/pkgdown)](https://cran.r-project.org/package=rfrappe)

`rfrappe` is an R htmlwidget for the [Frappe Charts](https://github.com/frappe/charts) JavaScript library. Frappe Charts creates simple, responsive, modern SVG charts with zero dependencies.

## Example

![Frappe Example](img/example.gif)

Above gif copied from the [Frappe Charts](https://github.com/frappe/charts/blob/master/README.md) README.

## Installation

```{r, eval = FALSE}
devtools::install_github("merlinoa/rfrappe")
```

## Usage

```{r, fig.width=9}
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"
))
```