Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tfVisPlot

Plot Tframed Objects using googleVis


Description

Plot tframe or tframed objects using googleVis, which allows pointing to lines on the plot in a browser to display extra information.

Usage

tfVisPlot(x, tf = tframe(x), start = tfstart(tf), end = tfend(tf), 
                  options=list(title=NULL), ...)

Arguments

x

a tframe or tframed object to plot.

...

any additional tframed objects for the same plot.

start

start of plot. (passed to tfwindow)

end

end of plot. (passed to tfwindow)

tf

a tframe or tframed object which can be used to specify start and end.

options

passed to googleVis, including title.

Details

This function produces a line plot of time series x in a web browser using gvisLineChart from package googleVis. The advantage of this relative to tfplot and tfOnePlot is that additional information about the series or points are displayed when the mouse pointer is close to a point. This can be useful, for example, to distinguish a particular vintage among several vintages in a graph. See package googleVis for more details.

Value

None.

Side Effects

An object is plotted in a browser.

See Also

Examples

## Not run: 
  z <- ts(matrix(rnorm(1000),100,10), start=c(1982,1), frequency=12)
  seriesNames(z) <- paste("Series", 1:10) 
  if (requireNamespace("googleVis")) 
     tfVisPlot(z, options=list(title="Random Number Series"))
  
## End(Not run)

tfplot

Time Frame User Utilities

v2015.12-1
GPL-2
Authors
Paul Gilbert <pgilbert.ttv9z@ncf.ca>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.