time_series_data_graph: Create a PDF with one time-series graph for each group in the...

View source: R/graphs.R

time_series_data_graphR Documentation

Create a PDF with one time-series graph for each group in the data.

Description

Create a PDF with one time-series graph for each group in the data.

Usage

time_series_data_graph(
  data,
  numeric_variable,
  time_variable,
  group_variable,
  outlier_std_dev_value = 1.96,
  file_name
)

Arguments

data

A data.frame with the data you want to graph.

numeric_variable

A string with the name of the column with numeric data to graph.

time_variable

A string with the name of the column that contains the time variable.

group_variable

A string with the name of the column with the grouping variable.

outlier_std_dev_value

A number that indicates how many standard deviations from the group mean an outlier is. Outliers will be colored orange in the data.

file_name

A string with the name of the PDF to be made with one page for each graph.

Value

A PDF with one page per graph


jacobkap/crimeutils documentation built on Jan. 1, 2023, 12:20 a.m.