【发布时间】:2020-08-12 17:25:41
【问题描述】:
R 中的新手,有问题但不明白到底有什么问题。单独的代码工作正常。我一起收到这个错误
Error in abs(x) : non-numeric argument to mathematical function
In addition: Warning message:
Removed 1 row(s) containing missing values (geom_path).
代码在这里
p + ggtitle("BTC Price Prformance") +
theme(plot.title = element_text(color="#002D7D", size=14, face="bold", hjust = 0.5)) +
theme(plot.title = element_text(color="#002D7D", size=14, face="bold", hjust = 0.5)) +
scale_x_continuous(limits = c(1,nrow(mResult)), expand = c(0, 0), breaks = as.numeric(mXLabels[,1]), labels = mXLabels[,2]) +
scale_y_continuous(limits = c(0,max( excelSheet$High[excelSheet$High!=max(excelSheet$High)] )), expand = c(0, 0), breaks=c(0, 2500, 5000, 7500, 10000, 12500, 15000, 17500, 20000)) +
theme(axis.text.x = element_text(angle = 45, hjust = 1))
【问题讨论】:
-
能否请您显示完整的代码和数据示例?
-
您的数据是否缺少观察结果,即
max是否可以重新调整NA
标签: r