chartjs is an implementation of the popular JavaScript vizualisation library Chart.js.

Installation

The package can be installed from GitHub via the devtools package:

devtools::install_github("tutuchan/chartjs", ref = "dev")

Charts

The 6 charts types available in Chart.js are implemented :

Features

Colors

Base colors imported from the Paired palette of ColorBrewer are available by default. It allows having a light color to represent the data which turns into a stronger color when highlighted.

Legends

The 2.0.0 version of Chart.js natively supports legends. Use cjsLegend to draw and customize them.

Scales

As of version 0.2.1, scales can be customized (see the Chart.js documentation for a full list of options).

Acknowledgments

Many thanks to :