scatterplot_data_graph: Create a PDF with one scatterplot for each group in the data.

Description Usage Arguments Value Examples

View source: R/graphs.R

Description

Create a PDF with one scatterplot for each group in the data.

Usage

1
2
3
4
5
6
7
scatterplot_data_graph(
  data,
  numeric_variable1,
  numeric_variable2,
  group_variable,
  file_name
)

Arguments

data

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

numeric_variable1

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

numeric_variable2

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

group_variable

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

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

Examples

1
2
3
4
5
## Not run: 
scatterplot_data_graph(mtcars, numeric_variable1 = "mpg", numeric_variable2 = "disp",
group_variable = "gear", file_name = "test.pdf")

## End(Not run)

crimeutils documentation built on Feb. 3, 2021, 5:07 p.m.