knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
R interface to NVD3.js
{nvd3R} is an R package for NVD3: a reusable graphics framework for d3.js.
The latest version can be installed from GitHub as follows:
install.packages("devtools") devtools::install_github("alexym1/nvd3R")
library(nvd3R) mtcars %>% nvd3Plot(x = "cyl", y = "mpg", type = "boxplot", xlab = "Test1", ylab = "Test2")
library(nvd3R) path_to_app <- system.file("App/example01.R", package = "nvd3R") runApp(path_to_app)
Official website at https://nvd3.org/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.