Queer European MD passionate about IT
浏览代码

Update Mission518Solutions.Rmd

Updating the solutions to use `ggplot()` because `qplot()` was deprecated.
Casey Bates 2 年之前
父节点
当前提交
669203a321
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      Mission518Solutions.Rmd

+ 5 - 4
Mission518Solutions.Rmd

@@ -110,10 +110,11 @@ covid_df_all_states_cumulative_max
 ```{r}
 library(ggplot2)
 
-qplot(x = Two_Letter_Country_Code,
-      y = max,
-      col = Continent_Name,
-      data = covid_df_all_states_cumulative_max)
+gglot(data = covid_df_all_states_cumulative_max, 
+  aes(x = Two_Letter_Country_Code,
+  y = max,
+  col = Continent_Name)) + 
+  geom_point()
 ```
 
 ## Conclusion: Answering the question: Which countries have had the highest fatality (mortality) rates?