R interface to dygraphs