【发布时间】:2020-09-10 03:55:43
【问题描述】:
基于这个问题Force the origin to start at 0 我想将其实现到一个新创建的主题中,而不仅仅是作为默认设置。
data(iris)
ggplot(iris, aes(x = Species)) +
geom_bar() +
scale_y_continuous(expand = expansion(mult = c(0, 0.05)))
如何在不定义每个情节的情况下做到这一点?
【问题讨论】:
-
这是 ggplot2 问题跟踪器中的一个未解决问题:github.com/tidyverse/ggplot2/issues/2691