All right?
I have a little problem with ggplot. I plot a related covid chart from a province of my country, but they are a few month and the chart appear with a lot of date numbers. I want to reduce it, but I don´t know how do it.
This is the .csv Baleares .csv
And this is the code:
library(tidyverse)
baleares<- read.csv("C:/Users/......baleares.csv",fileEncoding = "UTF-8", header = TRUE, sep = ";")
ggplot(baleares, aes(x=date, group = 1)) +
geom_line(aes(y = activos, colour = "Casos Activos"), size=1.5) +
geom_line(aes(y = hospitalized , colour="Hospitalizados") , size=1.5) +
theme(legend.position="top")+
theme(axis.text.x = element_text(angle = 90, hjust = 1))