Skip to content

Instantly share code, notes, and snippets.

@cecilialee
Last active February 23, 2018 08:08
Show Gist options
  • Select an option

  • Save cecilialee/d7acb160796b46dd75175c2323c26daa to your computer and use it in GitHub Desktop.

Select an option

Save cecilialee/d7acb160796b46dd75175c2323c26daa to your computer and use it in GitHub Desktop.
Use dc.js code directly in dcr. #r #shiny #dcr
library(dcr)
dcr <- dcr(mtcars)
chart <- dcrchart(type = "rowChart", id = "chart1", dimension = "cyl",
reduce = reduceCount(), width = 400, height = 250,
colors = dc_code("d3.scale.category10()"))
dcr + chart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment