
ggplot2
chengdehe
昨日理想,今日堕落,明日屈服
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Removed 256 rows containing missing values (geom_violin)
报错小提琴图**Warning message:Removed 256 rows containing missing values (geom_violin).**报错代码**library(“ggplot2”)data <- read.table(“clipboard”,sep="\t",header = T,check.names=F)dim(data)data[1:4,1:2]###转化因子datamale<−factor(datamale <-factor(d原创 2020-07-03 14:42:22 · 3309 阅读 · 0 评论 -
Warning message: Removed 35 rows containing missing values (geom_bar).
画柱状图,结果报错,因为y轴范围正常图想变小改变y轴范围,使图好看些scale_y_continuous(expand = c(0,0),limits = c(0,a))##改变后scale_y_continuous(expand = c(0,0),limits = c(0.5,a))报错Warning message:Removed 35 rows containing mi...原创 2020-04-29 13:53:35 · 7262 阅读 · 1 评论 -
geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?
报错见到这个报错,我百度了一下,好多是建议 group =1但尝试无效1.数据主要就错在 group 的数据类型,他是因子型,但如果想将坐标点连接起来得为数值merge_data$average <- as.numeric(merge_data$average)merge_data$group <- as.numeric(merge_data$group)这样就没...原创 2020-04-28 17:46:04 · 11733 阅读 · 1 评论 -
geom_signif 函数自己的错误 ——Warning message:
被两个错误搞了,一天---------以此纪念傻逼的自己,,气死了第一个很傻逼的错误**Computation failed in `stat_signif()`:not enough 'y' observations**这个告诉“Y”那不对,,,,,,,,这个错误最傻逼这个错误就是找不同,,,,,,这是我的错误,也许报错相同但是错误不同compaired <- list(c...原创 2020-04-22 15:19:11 · 19155 阅读 · 13 评论 -
修改ggplot2主题theme_classic
theme_classic应用于ggplot2后无法修改theme其他内容ps今天发现明明自己已经加的theme的修改内容但是无效,半天后发现,,,,注意以下两种代码顺序**1ggplot(plotdata, aes(标线, range,fill=标线)) + geom_boxplot()+ xlab("标线类型")+ ylab("极差")+ theme(l...原创 2020-03-12 18:57:00 · 6860 阅读 · 0 评论