plotTimesSeries | R Documentation |
Plot ts object
plotTimesSeries(
x,
time = NULL,
acf = FALSE,
lag.max = NULL,
na.action = na.fail,
demean = TRUE,
title = sprintf("%s Plot", name),
xlab = "Time",
ylab = name,
...
)
x |
a |
time |
A vector of the same length of |
acf |
Logical indicating if the acf and pacf should be plotted. |
lag.max |
maximum lag at which to calculate the acf. Default is 10*log10(N/m) where N is the number of observations and m the number of series. Will be automatically limited to one less than the number of observations in the series. |
na.action |
function to be called to handle missing values. na.pass can be used. |
demean |
logical. Should the covariances be about the sample means? |
title |
Graph title. |
xlab |
X-axis label. |
ylab |
Y-axis label. |
... |
Further arguments. |
Plot a ts object and, if desired, it's acf and pacf.
A ggplot object if acf
is FALSE
, otherwise TRUE
indicating success.
Jared P. Lander
ts.plotter plot.acf fortify.ts
plot(sunspot.year)
plot(sunspot.year, acf=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.