返回ROC曲线的所有坐标并保存到列表中

返回ROC曲线的所有坐标并保存到列表中,r,list,roc,coords,R,List,Roc,Coords,我想将ROC曲线的所有坐标保存到一个列表中,以便以后可以绘制多条ROC曲线 如何指定x值以返回所有坐标 roc_train <- roc(target~prob, data=ordered_test, col="#1c61b6") coord_list <- list() coord_list[1] <- coords(roc_train) roc\u train我假设您正在使用pROC包。x参数可以设置为“all”,如中所示 coord_list[[1]] <- co

我想将ROC曲线的所有坐标保存到一个列表中,以便以后可以绘制多条ROC曲线

如何指定x值以返回所有坐标

roc_train <- roc(target~prob, data=ordered_test, col="#1c61b6")
coord_list <- list()
coord_list[1] <- coords(roc_train)

roc\u train我假设您正在使用
pROC
包。
x
参数可以设置为
“all”
,如中所示

coord_list[[1]] <- coords(roc_train, x = "all")

coord_list[[1]]我假设您正在使用
pROC
包。
x
参数可以设置为
“all”
,如中所示

coord_list[[1]] <- coords(roc_train, x = "all")
coord_list[[1]]