Skip to content

Instantly share code, notes, and snippets.

@martinctc
Created February 13, 2020 18:08
Show Gist options
  • Save martinctc/00fe5f58c3888dab9d5037870b8cc3c2 to your computer and use it in GitHub Desktop.
Save martinctc/00fe5f58c3888dab9d5037870b8cc3c2 to your computer and use it in GitHub Desktop.
[tidy implementation of rCharts package] #R
library(tidyverse)
library(rCharts) # https://ramnathv.github.io/rCharts/
HairEyeColor %>%
as_tibble() %>%
filter(Sex == "Male") %>%
nPlot(n ~ Hair,
group = 'Eye',
data = .,
type = 'multiBarChart')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment