Create a PDF with one scatterplot for each group in the data.
scatterplot_data_graph( data, numeric_variable1, numeric_variable2, group_variable, file_name )
A PDF with one page per graph
A data.frame with the data you want to graph.
A string with the name of the first column with numeric data to graph.
A string with the name of the second column with numeric data to graph.
A string with the name of the column with the grouping variable.
A string with the name of the PDF to be made with one page for each graph.
if (FALSE) { scatterplot_data_graph(mtcars, numeric_variable1 = "mpg", numeric_variable2 = "disp", group_variable = "gear", file_name = "test.pdf") }
Run the code above in your browser using DataLab