tfVisPlot {tfplot} | R Documentation |
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
tfplot
,
tfOnePlot
,
gvisLineChart
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)