BlackBrownRedBlond0.05.010.015.020.025.030.035.040.045.050.00.053.0BrownBlueHazelGreenGroupedStacked

  1. library(rCharts)
  2. hair_eye_male = subset(
  3. as.data.frame(HairEyeColor),
  4. Sex == "Male"
  5. )
  6. n1 <- nPlot(Freq ~ Hair,
  7. group = 'Eye',
  8. data = hair_eye_male,
  9. type = 'multiBarChart'
  10. )
  11. n1