我创建了一个相关图:
library(nycflights13)
ggpairs(flights) +
ggsave(filename = paste("overall_corr_plot.png"), path = paste(getwd(), "/images", sep = ""))
这给了我一个错误:
Error in `+.gg`(ggpairs(flights), ggsave(filename = paste("overall_corr_plot.png"), :
'ggmatrix' does not know how to add objects that do not have class 'theme' or 'labels'. Received object with class: 'NULL'
In addition: There were 15 warnings (use warnings() to see them)
它似乎缺少一些数据。是否可以解决此问题,如果可以,如何解决?