[英]Add space and three dots (ellipsis) between ggplot2 facets to indicate omitted facets
我有一个facet
ed 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`.
由代表 package (v0.3.0) 于 2019 年 11 月 13 日创建
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.