1. #example how to use the new addFilters with angular and lodash
  2. #require(devtools)
  3. #install("rCharts","ramnathv",ref="dev")
  4. require(rCharts)
  5. n1 <- nPlot(
  6. Freq ~ Sex,
  7. group = "Eye",
  8. data = as.data.frame(HairEyeColor),
  9. type = "multiBarChart"
  10. )
  11. n1$addFilters("Hair","Eye")
  12. n1$templates$script = "https://timelyportfolio.github.io/rCharts_nvd3_templates/script_multiselect.html"
  13. n1