【发布时间】:2021-01-07 16:31:54
【问题描述】:
假设我有这样的情节:
library(ggplot2)
dat <- data.frame(x = 1:10, y = 1:10)
ggplot(dat, aes(x = x, y = y)) +
geom_point() +
xlab("Test label")
ggplot2 是否允许将xlab 定位固定在特定点?假设我希望标签以 x = 7 的位置居中显示(而不是默认居中)。
【问题讨论】:
标签: r ggplot2 label axis fixed