Secondary / Dual axis - ggplot

后端 未结 1 978
孤独总比滥情好
孤独总比滥情好 2021-01-02 01:42

I am opening this question for three reasons : First, to re-open the dual-axis discussion with ggplot. Second, to ask if there is a non-torturing generic approach to do that

相关标签:
1条回答
  • 2021-01-02 02:24

    In response to #1

    We've all stumbled across one of those plots where we need to use a ruler on the screen, because the axis is too far

    cowplot.

    # Assign your original plot to some variable, `gpv` <- ggplot( ... )
    ggdraw(switch_axis_position(gpv, axis="y", keep="y"))
    
    0 讨论(0)
提交回复
热议问题