Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. library(dygraphs)
  2.  
  3. lungDeaths <- cbind(ldeaths, mdeaths, fdeaths)
  4.  
  5. dygraph(lungDeaths, main = "Deaths from Lung Disease (UK)") %>%
  6. dyHighlight(highlightSeriesOpts = list(strokeWidth = 3)) -> d1
  7.  
  8. #this is a hack to set css directly
  9. # dyCSS designed to read a text css file
  10. d1$x$css = "
  11. .dygraph-legend > span {display:none;}
  12. .dygraph-legend > span.highlight { display: inline; }
  13. "
  14.  
  15. d1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement