Plotting in ggplot using cumsum
问题 I am trying to use ggplot2 to plot a date column vs. a numeric column. I have a dataframe that I am trying to manipulate with country as either china or not china, and successfully created the dataframe linked below with: is_china <- confirmed_cases_worldwide %>% filter(country == "China", type=='confirmed') %>% group_by(country) %>% mutate(cumu_cases = cumsum(cases)) is_not_china <- confirmed_cases_worldwide %>% filter(country != "China", type=='confirmed') %>% mutate(cumu_cases = cumsum