chartjs is an implementation of the popular JavaScript vizualisation library Chart.js.
The package can be installed from GitHub via the devtools package:
devtools::install_github("tutuchan/chartjs", ref = "dev")
The 6 charts types available in Chart.js are implemented :
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.
The 2.0.0 version of Chart.js natively supports legends. Use cjsLegend
to draw and customize them.
As of version 0.2.1, scales can be customized (see the Chart.js documentation for a full list of options).
Many thanks to :