From f902fc1362fdc4cbeafd0aee045227ad2c4b537e Mon Sep 17 00:00:00 2001 From: ZAVEZA Date: Fri, 31 May 2024 14:38:15 -0400 Subject: [PATCH] Correcting typo in exercise and solution files --- exercises/data_types_and_viz_exercises.Rmd | 4 ++-- solutions/data_types_and_viz_solutions.Rmd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/data_types_and_viz_exercises.Rmd b/exercises/data_types_and_viz_exercises.Rmd index 9cb886c..e89e8bf 100644 --- a/exercises/data_types_and_viz_exercises.Rmd +++ b/exercises/data_types_and_viz_exercises.Rmd @@ -135,7 +135,7 @@ ggplot(data = covid_testing, # dataset to use for plot mapping = aes( # list of aesthetic mappings to use for plot x = pan_day, # x-axis variable y = ct_result, # y-axis variable - color = as.factor(drive_thru_ind))) # color variable + + color = as.factor(drive_thru_ind)))+ # color variable geom_point() + scale_color_manual(values = c("0" = 'blue', # sets colors for each level "1" = 'red')) + @@ -152,7 +152,7 @@ ggplot(data = covid_testing, # dataset to use for plot mapping = aes( # list of aesthetic mappings to use for plot x = pan_day, # x-axis variable y = ct_result, # y-axis variable - color = as.factor(drive_thru_ind))) # color variable + + color = as.factor(drive_thru_ind))) + # color variable geom_point() + scale_color_manual(values = c("0" = 'blue', # sets colors for each level "1" = 'red')) + diff --git a/solutions/data_types_and_viz_solutions.Rmd b/solutions/data_types_and_viz_solutions.Rmd index a3388c9..8cc42b7 100644 --- a/solutions/data_types_and_viz_solutions.Rmd +++ b/solutions/data_types_and_viz_solutions.Rmd @@ -139,7 +139,7 @@ ggplot(data = covid_testing, # dataset to use for plot mapping = aes( # list of aesthetic mappings to use for plot x = pan_day, # x-axis variable y = ct_result, # y-axis variable - color = as.factor(drive_thru_ind))) # color variable + + color = as.factor(drive_thru_ind))) + # color variable geom_point() + scale_color_manual(values = c("0" = 'blue', # sets colors for each level "1" = 'red')) + @@ -156,7 +156,7 @@ ggplot(data = covid_testing, # dataset to use for plot mapping = aes( # list of aesthetic mappings to use for plot x = pan_day, # x-axis variable y = ct_result, # y-axis variable - color = as.factor(drive_thru_ind))) # color variable + + color = as.factor(drive_thru_ind))) + # color variable geom_point() + scale_color_manual(values = c("0" = 'blue', # sets colors for each level "1" = 'red')) +