rNVD3
is an R package that provides a familiar plotting interface to create interactive visualizations using NVD3.js
You can install rNVD3
from github
using the devtools
package
require(devtools)
install_github("rNVD3", "ramnathv")
Here is an example that you can try in your R console
hair_eye = subset(as.data.frame(HairEyeColor), Sex == "Female")
p1 <- nvd3Plot(Freq ~ Hair | Eye, data = hair_eye, type = 'multiBarChart')
p1$chart(color = c('brown', 'blue', '#594c26', 'green'))
p1
p1$save('haireye.html')