I have a dataset with two time series variables showing the number of COVID cases in two states and am trying to stack this data on top of each other in the same graphic. I have the first layer just fine:
ggplot(MI_FL_Data, aes(x=realdate, y=FLday))+geom_area(fill="blue")
but when I add the second command I get an error:
ggplot(MI_FL_Data, aes(x=realdate,y=FLday))
+ geom_area(fill="blue")
+ ggplot(MI_FL_Data, aes(x=realdate,y=MIday))
+ geom_area(fill="red")
Error: Can't add 'ggplot(MI_FL_Data, aes(x=realdate, y=MIday))' to a ggplot object.*
I assume I don't need ggplot after (fill="blue") but I'm not sure. Any help with code here would be great!