I am creating the following graph with labels being created for each variable as per the below. I can include \n
and move the text below the as per the example below, but how can I make the text "Cat.1 [1-3] & Cat.2 [3-5]" smaller? I tried \small
but didn't work.
graph <- within(results, Variable_label[Variable=="Var_1"] <- "Average age of individuals \n Cat.1 [1-3] & Cat.2 [3-5]")
graph %>%
ggplot(aes(year, Variable_label, fill = other_variable)) +
geom_tile(color = "white") +
coord_equal()
I currently have: