I'm going to be producing a lot of visuals for a report. My boss really likes the theme_clean() horizontal lines but wants me to add the same lines to the x-axis. Is there an easy way to do this?
Here is my code
library(ggplot2)
library(ggthemes)
ggplot(mtcars, aes(x = mpg)) +
geom_point(aes(y = hp)) +
theme_clean(base_size=18)
How can I get the same style for my x-axis ticks (going vertical).
Best.

Try this. Simply typing
theme_cleaninto the console shows you the default values used bytheme_cleanforpanel.grid.major.ywhich we then can use to set the values forpanel.grid.major.xaccordingly usingtheme():Created on 2020-04-07 by the reprex package (v0.3.0)