I need to turn the labels on a bar graph, so that I can fit more names into a small space. I wanted to turn the labels 45 degrees, but I don't know if that is possible with the barplot function. Here is the bar graph I have currently and the code I am using.
if(length(PeoplesubCali$Name) < 11){
barplot(PeoplesubCali$TotalPeople,col = c("Blue","Red","Purple","Green"), xlab="Hospitals", ylab="LWBS%",
border=NA,ylim=c(0, input$PeopleRange[2]),xpd=FALSE,
names.arg = PeoplesubCali$Name)}
else{
barplot(PeoplesubCali$TotalPeople,col = c("Blue","Red","Purple","Green"), xlab="Hospitals", ylab="LWBS%",
border=NA,ylim=c(0, input$PeopleRange[2]),xpd=FALSE
)}