[英]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.