Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Last active December 31, 2015 18:18
Show Gist options
  • Save ramnathv/8025702 to your computer and use it in GitHub Desktop.
Save ramnathv/8025702 to your computer and use it in GitHub Desktop.
Example 4: xCharts
require(reshape2)
library(rCharts)
uspexp <- melt(USPersonalExpenditure)
names(uspexp)[1:2] = c("category", "year")
x1 <- xPlot(value ~ year, group = "category", data = uspexp, type = "line-dotted")
x1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment