【发布时间】:2020-11-04 20:18:18
【问题描述】:
ggplot2 我正在尝试绘制散点图,但是在与分面网格合并时,一些值在 y 轴点附近看起来不完整,如何解决这个问题任何人都可以帮助我。
dummy <- data.frame(Value = c(rnorm(100, mean = 35, sd = 2),
rnorm(100, mean = 47, sd = 2),
rnorm(100, mean = 28, sd = 1)),
Method = c(rep("base", times = 100),
rep("new", times = 100),
rep("edge", times = 100)),
Subject = rep(paste0("M", seq_len(100)), times = 3))
library("ggplot2")
ggplot(dummy, aes(y=Value, x=Subject)) +
geom_point(aes(shape=Method),size = 2.5) +
facet_wrap(~ Method)
【问题讨论】: