ACF Plot with ggplot2: Setting width of geom_bar

前端 未结 4 1026
时光说笑
时光说笑 2021-02-18 23:25

With acf we can make ACF plot in base R graph.

x <- lh
acf(x)

4条回答
  •  深忆病人
    2021-02-19 00:19

    How about using geom_errorbar with width=0?

    ggplot(data=bacfdf, aes(x=lag, y=acf)) + 
        geom_errorbar(aes(x=lag, ymax=acf, ymin=0), width=0)
    

提交回复
热议问题