Rescaling the y axis in bar plot causes bars to disappear : R ggplot2

后端 未结 1 2053
陌清茗
陌清茗 2020-12-01 05:23

I am trying to create a barplot using ggplot2, with the y axis starting at a value greater than zero.

Lets say I have the means and standard errors for hypothetical

相关标签:
1条回答
  • 2020-12-01 05:50

    Try this

    p + coord_cartesian(ylim=c(200,300))
    

    Setting the limits on the coordinate system performs a visual zoom; the data is unchanged, and we just view a small portion of the original plot.

    barplot example

    0 讨论(0)
提交回复
热议问题