I'm working on a graph with small multiples, and while it's pretty rudimentary since I'm very new to R and ggplot2, it works well enough for what I need. This is the code right now:
ggplot(dataggplot2multiple, aes(x=PERÍODO, y=VARIAÇÃO, group=TERRITORIALIDADE, color=TERRITORIALIDADE)) +
geom_line() +
theme_ipsum() +
facet_wrap(~ TERRITORIALIDADE)+
scale_x_continuous(breaks=c(1819, 1920, 2021, 2122)) +
labs(title="Variação na cobertura do PAB/PBF") +
theme(axis.ticks = element_blank(),
axis.text.y = element_blank(),
legend.position = "none"
)
This is what it looks like:
The one thing I would like to change is the bottom legend. I would like these numbers (1819, 1920, 2021, 2122) to also appear right bellow my first three graphs. Is there any way to do that? Any feedback would be greatly appreciated!