我该如何在
我已经尝试了以下方法:
ggplot2
中绘制一个y值向量的图形? pValues_Both <- c(0.004079,0.4392,0.6882,0.02053,0.4849,0.4938,0.3379,0.8408,0.07067,0.6603,0.2547,0.8692,0.8946,0.0696,0.6206,0.9559,0.9119,0.5162,0.2469,0.1582)
我已经尝试了以下方法:
pValues_Both.m <- melt(pValues_Both)
ggplot(pValues_Both.m, aes(y=value)) + geom_bar(stat="identity")
Error in exists(name, envir = env, mode = mode) :
argument "env" is missing, with no default
错误:stat_count()不得与y美学一起使用。 另外:警告消息: 'stat'已过时
- Johnqplot()
在 ggplot2 3.4.0 中已被弃用。 - maarten