I am looking for a simple solution to rotate the x-axis labels by 45 °.
I have already tested several codes but without success. My last attempt was:
par(old.par)
p3 <- barchart(CASS_Data$PASS_Prozent + CASS_Data$FAIL_Prozent ~ CASS_Data$Buchungsperiode,
data=CASS_Data, stack="TRUE", col=c("green","red"), position = "fill",
xlab="", ylab="", main = paste("Test","Prozent"), ylim=c(0,100), xaxt = "n")
lab <- CASS_Data$Buchungsperiode
text(x = 1:length(lab), labels = lab, srt = 45, adj = c(1,1), xpd = T)
print(p3)
Unfortunately, the x-axis labels are not rotated. Is there another simple solution?