Putting x-axis at top of ggplot2 chart

后端 未结 5 1498
逝去的感伤
逝去的感伤 2020-12-13 08:23

I feel like this should be obvious... all I\'m trying to do is to remove the x-axis from the bottom of my graph and add it to the top.

Here is a reproducible examp

5条回答
  •  猫巷女王i
    2020-12-13 09:01

    You can move the x-axis labels to the top by adding

    scale_x_discrete(position = "top") 
    

提交回复
热议问题