R/chart.TimeSeries.googlevis.R

Defines functions chart.TimeSeries.googlevis

Documented in chart.TimeSeries.googlevis

#' @rdname chart.TimeSeries
#' 

chart.TimeSeries.googlevis <-
  function(R,
           xlab,ylab,
           main){
    y = data.frame(date=index(R),coredata(R))
    
    plot <- googleVis::gvisLineChart(y,
                                     options=list(
                                     gvis.editor="Edit",
                                     xvar=xlab,
                                     yvar=ylab,
                                     title=main)
    )
    
    return(plot)
  }
braverock/PerformanceAnalytics documentation built on Feb. 16, 2024, 5:37 a.m.