Rotating x axis labels in R for barplot

后端 未结 8 649
暖寄归人
暖寄归人 2020-11-27 12:29

I am trying to get the x axis labels to be rotated 45 degrees on a barplot with no luck. This is the code I have below:

barplot(((data1[,1] - average)/averag         


        
8条回答
  •  一生所求
    2020-11-27 12:39

    use optional parameter las=2 .

    barplot(mytable,main="Car makes",ylab="Freqency",xlab="make",las=2)
    

    enter image description here

提交回复
热议问题