tfVisPlot: Plot Tframed Objects using googleVis

Description Usage Arguments Details Value Side Effects See Also Examples

Description

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

Usage

1
2
    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

tfplot, tfOnePlot, gvisLineChart

Examples

1
2
3
4
5
6
7
 ## 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 documentation built on June 3, 2021, 1:07 a.m.

Related to tfVisPlot in tfplot...