state_arima_pctdiff: state_arima_pctdiff: Run this first to do ARIMA by state...

View source: R/arima-spike-multigeo.R

state_arima_pctdiffR Documentation

state_arima_pctdiff: Run this first to do ARIMA by state functions

Description

state_arima_pctdiff: Run this first to do ARIMA by state functions

Usage

state_arima_pctdiff(
  state_arima_list,
  linecol = "gray",
  scaletitle = "% Diff.\nin Searches",
  lowcol = NA,
  midcol = NULL,
  highcol = NA,
  colorscheme = "red",
  save = T,
  width = 6,
  height = 4,
  outfn = "./output/fig.png"
)

Arguments

state_arima_list

A dataframe including time as timestamp and searches for your given geography in one column.

linecol

Color of the state boundaries

scaletitle

Title on the scale

lowcol

Color at lower end of scale

midcol

Color at mid of scale

highcol

Color of high end of scale

save

default T, if false does not save

width

width in inches

height

height in inches

outfn

output filename

Examples

state_arima_pctdiff(
  state_list,
  linecol = "gray",
  scaletitle = "Pct Diff nin Searches",
  lowcol = "white",
  midcol = NULL,
  highcol = "dodgerblue4",
  save = T,
  width = 6,
  height = 4,
  outfn = "./output/fig.png"
)

tlcaputi/gtrendR documentation built on Nov. 3, 2022, 10:46 p.m.