【问题标题】:Placing the label of the panel from the top of the plot to the top left when using facet_wrap()使用 facet_wrap() 时,将面板的标签从绘图顶部放置到左上角
【发布时间】:2023-04-04 22:54:01
【问题描述】:

在 ggplot2 包中使用 facet_wrap () 时,如何从绘图顶部到绘图左上角放置面板的标签? 也就是将数字 4、5,6 和 8 的位置从绘图的顶部更改为左上角。

【问题讨论】:

  • 我建议你也提供你的数据集和代码

标签: r ggplot2


【解决方案1】:

试试添加这个是否有效:

+ theme(strip.text.x = element_text(hjust=0))

【讨论】:

  • 是的,它是完美的。非常感谢。
  • @user 太好了,请考虑接受我的回答。
猜你喜欢
  • 1970-01-01
  • 2023-03-19
  • 1970-01-01
  • 2019-07-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-14
  • 2016-05-29
相关资源
最近更新 更多