Rotating x axis labels in R for barplot

后端 未结 8 647
暖寄归人
暖寄归人 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:44

    You may use

    par(las=2) # make label text perpendicular to axis
    

    It is written here: http://www.statmethods.net/graphs/bar.html

提交回复
热议问题