Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作为这个问题的后续问题:这里
position = position_stack()使用in时是否可以排除值geom_text()?例如,类似:在 geom_text 中定义子集数据并重新定义 aes geom_text(data=subset(Data,Frequency<250), aes(x = Year, y = Frequency),size = 3, position = position_stack(vjust = 0.5))。上面的逻辑抛出了 uneval 类的错误。
position = position_stack()
geom_text()
geom_text(data=subset(Data,Frequency<250), aes(x = Year, y = Frequency),size = 3, position = position_stack(vjust = 0.5))
由于标签geom_text会自动解析为文本,因此您可以将其硬编码为不想显示值的空字符串。
geom_text