| geom_acf | R Documentation | 
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
geom_acf.
geom_acf(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  lag.max = NULL,
  type = "correlation",
  level = 0.95,
  ...
)
mapping | 
 Set of aesthetic mappings created by   | 
data | 
 The data to be displayed in this layer. There are three options: If  A  A   | 
position | 
 Position adjustment, either as a string naming the adjustment
(e.g.   | 
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  | 
level | 
 A numeric defining the confidence level. If   | 
... | 
 Other arguments passed on to   | 
library(dplyr)
fstaff <- hourly_peds %>%
  filter(Sensor_ID == 13)
# use ggplot2 
fstaff %>%
  ggplot(aes(x = ..lag.., y = Hourly_Counts)) +
  geom_acf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.