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)
  }

Try the PerformanceAnalytics package in your browser

Any scripts or data that you put into this service are public.

PerformanceAnalytics documentation built on Feb. 6, 2020, 5:11 p.m.