Skip to content

Instantly share code, notes, and snippets.

@mages
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mages/9565265 to your computer and use it in GitHub Desktop.
Save mages/9565265 to your computer and use it in GitHub Desktop.
require(googleVis) ## googleVis 0.5.0-3
dat <- data.frame(Room=c("Room 1","Room 2","Room 3"),
Language=c("English", "German", "French"),
start=as.POSIXct(c("2014-03-14 14:00",
"2014-03-14 15:00",
"2014-03-14 14:30")),
end=as.POSIXct(c("2014-03-14 15:00",
"2014-03-14 16:00",
"2014-03-14 15:30")))
plot(
gvisTimeline(data=dat,
rowlabel="Room", barlabel="Language",
start="start", end="end")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment