Description Usage Arguments Examples
Since the data input is data.frame
, it's better to sort the date-times
from early to recent and make implicit missing values explicit before using
stat_acf
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
geom |
The geometric object to use display the data |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
Logical. If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
lag.max |
An integer indicating the maximum lag at which to calculate the acf. |
type |
A character string giving the type of the acf to be computed. The default is the "correlation" and other options are "covariance" and "partial". |
level |
A numeric defining the confidence level. If |
... |
Other arguments passed on to |
1 2 3 4 5 6 7 8 | library(dplyr)
fstaff <- hourly_peds %>%
filter(Sensor_ID == 13)
# use ggplot2
fstaff %>%
ggplot(aes(x = ..lag.., y = Hourly_Counts)) +
stat_acf(geom = "bar")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.