【发布时间】:2019-04-11 02:36:18
【问题描述】:
set.seed(3)
data <- tibble(Group = c(rep("g1", 10), rep("g2", 10), rep("g3", 10)),
Value = c(runif(10, min = 1, max=5), runif(10, min = 1, max=5), runif(10, min = -5, max=5)))
ggplot(data, aes(Group, Value)) +
geom_point() +
facet_wrap(~ Group, scales = "free")
你可以看到当y带有小数/负值时,空间变大了。
【问题讨论】:
标签: r ggplot2 facet-wrap