Skip to content

Commit

Permalink
Update do_rf.R
Browse files Browse the repository at this point in the history
updating png names Front-end/#5
  • Loading branch information
AndreaSanchezTapia authored Apr 18, 2018
1 parent 99fcce4 commit ae0ab16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/do_rf.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,17 @@ do_rf <- function(sp,
sp, "_", i, ".tif"), overwrite = T)

if (write_png == T) {
png(filename = paste0(partition.folder, "/rf", sp, "_", i, "%03d.png"))
png(filename = paste0(partition.folder, "/rf_cont_", sp, "_", i, ".png"))
raster::plot(rf_cont, main = paste("RF raw", "\n",
"AUC =", round(erf@auc, 2), "-",
"TSS =", round(rf_TSS, 2)))
dev.off()
png(filename = paste0(partition.folder, "/rf_bin_", sp, "_", i, ".png"))
raster::plot(rf_bin, main = paste("RF P/A", "\n",
"AUC =", round(erf@auc, 2), "-",
"TSS =", round(rf_TSS, 2)))
dev.off()
png(filename = paste0(partition.folder, "/rf_cut_", sp, "_", i, ".png"))
raster::plot(rf_cut, main = paste("RF cut", "\n",
"AUC =", round(erf@auc, 2), "-",
"TSS =", round(rf_TSS, 2)))
Expand Down

0 comments on commit ae0ab16

Please sign in to comment.