I'm trying to create a ggplot2 style where the title, subtitle and the axis.text.y are all left aligned with 0 margin on the plot not on the y axis.
Then I want to have a different margin between the axis.text.y and the panel.grid, say 64px.
Can this be done in the theme() function?
library(ggplot2)
library(magrittr)
iris %>%
ggplot(aes(Sepal.Length, Sepal.Width,
color = Species)) +
geom_point() +
theme_minimal() +
theme(legend.position = 0) +
labs(title = "The Sepal.Width vs. Sepeal.Length",
subtitle = "The iris dataset",
y = "")
Desired outcome:
