You know how to make
ggplot2 graphics, right? No worries. Piece of cake.
Now, can you please rotate the
x axis labels to vertical?
ggeasy is here to make that a little easier.
You can install ggeasy from github with:
# use labelled variables iris_labs <- iris labelled::var_label(iris_labs$Species) <- "Flower\nSpecies" labelled::var_label(iris_labs$Sepal.Length) <- "Length of Sepal" iris_labs_2 <- iris_labs labelled::var_label(iris_labs_2$Species) <- "Sub-genera" # use variable labels automatically ggplot(iris_labs, aes(x = Sepal.Length, y = Sepal.Width)) + geom_line(aes(colour = Species)) + geom_point(data = iris_labs_2, aes(fill = Species), shape = 24) + easy_labs()
These functions will try to teach you the ‘official’ way to achieve these goal, usually via the
teach argument (where implemented)