我在R中使用taylor.diagram来评估模型的性能。下面的代码可以制作一个示例taylor.diagram图:
library(plotrix)
# create random data as the reference data
ref <-rnorm(30,sd=2)
# create some data as the model results
model <- ref+rnorm(30)
# display the diagram to evaluate the model peformance
plot <-taylor.diagram(ref,model)现在我的问题是:如何从这个图表中提取数据结果?我需要标准差(参考文献和模型),相关系数(r值),和中心根均方(RMS).
谢谢
发布于 2021-06-10 13:27:23
Taylor图是一个可视化工具,尽管它计算了这些指标,但您无法访问它们。你可以用R.
Metrics::rmse(ref,model)
stats::cor(ref,model, method= c('pearson))
sd(ref)https://stackoverflow.com/questions/67921985
复制相似问题