rotate X axis labels 45 degrees on grouped bar plot R
How can I rotate the X axis labels 45 degrees on a grouped bar plot in R? I have tried the solution suggested here but got something very messy, the labels seem to have been added multiple times (only showing the axis part to protect data privacy): This solution (gridBase) was also unsuccessful for me, for some reason I get the following error: "Cannot pop the top-level viewport (grid and graphics output mixed?)" PS. Most people seem to recommend this solution in R base but I am stuck with that too because I don't understand what data they are referring to (I need some kind of example data set