0

would be super grateful if anyone could help clarify why didn't the theme() function changes the size, angle and color of the x-axis data labels (i.e. Human Resource, Life Science, Marketing etc.)?

Or is there any other points I should look into or provide to better picture the situation?

knitr::opts_chunk$set(echo = TRUE)
ggplot(data=df1)+
  geom_bar(mapping=aes(x=education_field))+
  facet_wrap(~attrition)+
  labs(title="Education background against employee attrition",
       x="",
       y="number of employees") +
  theme(axis.title.x=element_text(size=12, angle=45,color="blue"))

how it looks like in script to rmb

Phil
  • 5,491
  • 3
  • 26
  • 61
abeasks
  • 11
  • 1

0 Answers0