我使用了likert和ggplot2包来创建该图。现在,我想将图例的底部向左移动一点,因为最后一部分(严格同意)未在图中显示。不幸的是,到目前为止我找不到解决方案。如何向左移动/移动图例?
<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS8yVDhCaS5wbmcifQ==” alt =“链接到图表”>“>
代码:
plot(Likert_Uni_Study_Orientation_OF_V, low.color = "#007CC2", high.color = "#F7971C", neutral.color = "grey", neutral.color.ramp = "white", text.size=9) + theme(legend.text=element_text(size=24, margin = margin(r = 30, unit = "pt"))) + theme(legend.direction = "horizontal", legend.position = "bottom") + theme(legend.title = element_blank()) + ggtitle("Uni Study Orientation – Only Fusha Learners") + theme(plot.title = element_text(hjust = 0.5, size =30)) + theme(text = element_text(size = rel(6), color = "black"), axis.text.y = element_text(color = "black")) + theme(axis.text.x = element_text(colour="black", size="30")) + theme(axis.title.x = element_text(vjust=2, size=20, color = "black"))
谢谢您的帮助!
我使用了likert和ggplot2包来创建该图。现在,我想将图例的底部向左移动一点,因为最后一部分(严格同意)未在图中显示。 ...
保存到文件时,为width
参数指定更高的值。