【发布时间】:2020-09-25 18:22:24
【问题描述】:
我有一个情节,我通过las = 2 引入了垂直 x 轴标签。这些标签是类别词。这几个字太长了,突出到画面之外。我该怎么做才能让它们融入图片?
这是代码(x 轴标签是德语单词):
categories <-c("Traditionsbewusst / Heimatverbunden","Bekanntheit
","Jugendlich / Modern
","Professionell
","Sozial engagiert
","Aufstrebend / Motiviert
","Umwelt / Nachhaltigkeit
","Sympathisch
","Familienfreundlich
","Mitreißend
","Posetives Image
","Teamgeist
","Inovativ
")
Ergebnis<-c(2,1,2,2,2,2,2,2,2,2,3,2,2)
plot(Ergebnis,type = "b",main = "Profil Image",xlab = "",ylab = "Bewertung",axes =FALSE)
axis(1,at=1:13,labels = categories,las=2,cex.axis=0.8)
axis(2)
【问题讨论】: