我有一个facet
版ggplot
,其中每个方面都是一个月中的某一天。我想用空格和三个点(省略号)代替第4到29天,以提醒我的读者有关省略的日子。我看到theme()
允许自定义,但是看不到任何允许我在第3天和第30天刻面之间插入空格和三个点的选项。
我应该使用Photoshop还是MS Paint?
library(tidyverse)
tibble(day = rep(1:30,5),value = runif(5*30)) %>%
filter(day %in% c(1:3,30)) %>%
ggplot(aes(x = value)) +
geom_histogram() +
facet_grid(day ~ .)
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
由reprex package(v0.3.0)于2019-11-13创建