I have the below table on data "data_temp" and I'm trying to plot a trend line using "geom_line", but line does not appear.
> head(data_temp,15)
Mês n
1 Janeiro 7432
2 Fevereiro 7077
3 Março 7494
4 Abril 7760
5 Maio 7755
6 Junho 7516
7 Julho 7320
8 Agosto 7084
9 Setembro 7134
10 Outubro 7390
11 Novembro 6973
12 Dezembro 8622
This is the code I used:
ggplot(data = data_temp, aes(x=Mês, y=n))+
geom_line() +
geom_point()
You can see below that the points work, but the line does not appear.
I tried so many codes in a different way, but I haven't suceed so far. I hope anyone can help me.
- The x = "Mês", means "Month", but is in portuguese.
Many thanks,
Wil