GitHub Workflow Status
The goal of plotjs is provide to a base ‘graphics’-like interface to the Chart.js JavaScript charting library. The main plotjs() function is an S3 generic like the base plot() function with methods for various base R objects.
Besides htmlwidgets, it has minimal R dependencies. Tidyverse not required!
Installation
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("arkraieski/plotjs")Methods
To see a list of S3 methods:
library(plotjs)
methods(plotjs)
#> [1] plotjs.default* plotjs.density* plotjs.factor* plotjs.function*
#> [5] plotjs.lm*
#> see '?methods' for accessing help and source codeMore are on the way! The goal is to replicate the behavior of base R plot() methods as closely as possible while also getting the benefits of using a Chart.js-backed interactive widget. Each method has its own help page that can be accessed for additional information.