【发布时间】:2021-12-30 02:34:48
【问题描述】:
当使用来自{ggforce} packge 的facet_zoom() 时,有没有办法自己标记构面?
例如,我可以制作如下图:
library(ggplot2)
library(ggforce)
ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +
geom_point() +
facet_zoom(x = Species == 'versicolor') +
labs(caption = "Figure 1. a) entire data range; b) zoom in on versicolor") +
theme_bw() +
theme(plot.caption = element_text(hjust = 0))
由reprex package (v2.0.1) 于 2021 年 11 月 19 日创建
但我如何才能真正标记这些方面?我想实现类似:
【问题讨论】: