Draw histograms per row over multiple columns in R

前端 未结 2 1661
青春惊慌失措
青春惊慌失措 2020-12-06 20:13

I\'m using R for the analysis of my master thesis I have the following data frame: STOF: Student to staff ratio

    HEI.ID   X2007 X2008 X2009 X2010 X2011 X2         


        
2条回答
  •  佛祖请我去吃肉
    2020-12-06 20:58

    Here's a solution in lattice:

    require(lattice)
    barchart(X2007+X2008+X2009+X2010+X2011+X2012 ~ HEI.ID,
             data=HEIrank11,
             auto.key=list(space='right')
             )
    

    enter image description here

提交回复
热议问题