Skip to content

Commit

Permalink
Correcting typo in exercise and solution files
Browse files Browse the repository at this point in the history
  • Loading branch information
zaveza-chop committed May 31, 2024
1 parent 4f664ee commit f902fc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exercises/data_types_and_viz_exercises.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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')) +
Expand All @@ -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')) +
Expand Down
4 changes: 2 additions & 2 deletions solutions/data_types_and_viz_solutions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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')) +
Expand All @@ -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')) +
Expand Down

0 comments on commit f902fc1

Please sign in to comment.