Plot Percents with Likert Package - Doesn`t work when grouping

后端 未结 4 1292
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 23:29

I\'ve created some charts using the Likert package, however when I create plots by groups the plot.percents = TRUE won\'t give me the labels for each response category. The

4条回答
  •  清酒与你
    2021-01-19 00:17

    Hey I tried it out and it doesn't work for me either using the grouping data. There is no mention of why despite plot.percent.low and plot.percent.high working fine. Unless someone else cracks it all I can do is offer a workaround using plot() instead of likert.bar.plot and text()

    Here I label the Agree category only for all three groups.

    plot(likert.df.group, type="bar")
    text(c(0.35,0.35,0.35), c(0.85,0.6,0.25), 
         labels = paste0(c(42.8,28.57,42.85),"%") )
    

    enter image description here

提交回复
热议问题