position legend of a stacked bar plot

后端 未结 4 907
余生分开走
余生分开走 2020-12-29 04:57

I am trying to create a stacked bar plot, but I cannot position the legend so that it does not overlap any of the bars. I have tried adjusting the margins, setting xl

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 05:50

    You should add xpd=TRUE in par()

    par(mfrow=.., mar=...,xpd=TRUE)
    

提交回复
热议问题