Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 将标签网格移动到绘图的左侧_R_Ggplot2 - Fatal编程技术网

R 将标签网格移动到绘图的左侧

R 将标签网格移动到绘图的左侧,r,ggplot2,R,Ggplot2,走出我的舒适区,我用PHP、Jquery等开发,在R-Studio中帮助别人。我有一个绘图,其中标签位于Y轴和绘图区域之间,我可以使用 facet_grid(producer~., switch="y", labeller = labeller(producer = label_wrap_gen(width = 50)))+ 使用开关“z”将标签放在右侧,但这是左侧的最远距离 毫无疑问,你需要更多的信息,但我不知道你还需要什么。感谢您的指点。对其进行排序。谢谢你的建议,但这是一个完美的解决方

走出我的舒适区,我用PHP、Jquery等开发,在R-Studio中帮助别人。我有一个绘图,其中标签位于Y轴和绘图区域之间,我可以使用

facet_grid(producer~., switch="y", labeller = labeller(producer = label_wrap_gen(width = 50)))+
使用开关“z”将标签放在右侧,但这是左侧的最远距离


毫无疑问,你需要更多的信息,但我不知道你还需要什么。感谢您的指点。

对其进行排序。谢谢你的建议,但这是一个完美的解决方案

theme(strip.placement = "outside") + 
产生了这个->

希望它能帮助别人

问候


基思

把标签旋转90度怎么样?不会解决问题,但可能看起来不错:)尝试
xlab(“Fucus spiralis”)