I've created a chart in RStudio and this is part of my code:
theme(
plot.title = element_text(colour = "#ec008c", family = "Inter", size = 25),
axis.title.y = element_text(size = 14, family = "Inter", hjust = 0.1),
axis.text.x = element_text(family = "Inter"),
axis.text.y = element_text(family = "Inter"),
plot.subtitle = element_text(family = "Inter")
)
I understand that hjust
(i.e. horizontal justification) and vjust
(i.e. vertical justification) are used to move labels around, my question is why does this code using hjust
move the y-axis title up and down rather than left and right?
It makes more sense to me intuitively to use vjust
to move the axis title up and down, is there something wrong with my thought process?