2021年3月21日星期日

Issue with mapping using ggplot

so this is my code here:

library(lubridate)

COVID <- COVID %>% mutate(Date = ymd(COVID$dateRep))

ggplot(data = COVID, aes(x=Date, y=cases))+ geom_point()

ggplot(data = COVID, aes(x=Date, y=cases))+ geom_point(aes(color=countriesAndTerritories))

So here I just have the colors mapped to countries but my plot wont show

here my plot shows but without the labels

my overall plan is to show if cases per day increses around holidays (times of travel)

https://stackoverflow.com/questions/66739774/issue-with-mapping-using-ggplot March 22, 2021 at 10:58AM

没有评论:

发表评论