在Rstudio中运行代码

p<-ggplot(outfile,aes(x = type,y = log2FoldChange))+geom_bar(stat = 'identity',fill='#FF9999')+geom_text(label=sig,colour='blue',vjust=1,check_overlap = TRUE,size=7)
+theme(axis.text = element_text(size=14))

出现错误

Error in inherits(x, "theme") : argument "e2" is missing, with no default

这是因为+位于开头了,导致theme()语句无法与上一语句衔接,只需把+放在上一语句的末尾

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2021-08-29
  • 2022-01-20
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2022-12-23
  • 2021-10-12
  • 2022-01-30
  • 2021-11-28
  • 2021-08-15
  • 2021-11-06
相关资源
相似解决方案