Commit 8832ce9c authored by Romulo Pereira Goncalves's avatar Romulo Pereira Goncalves
Browse files

Merge branch 'plot_final_map' into 'master'

changed order of lines for avoiding NA in the final map

Closes #51

See merge request !31
parents 8286db60 f019d999
Pipeline #37180 passed with stages
in 13 minutes and 25 seconds
......@@ -87,8 +87,8 @@ plot_results <- function(inPath, color = NULL) {
for (i in 1:(length(files) + 1)) {
if (i == (length(files) + 1)) {
dummy <- raster::raster(files[(i - 1)])
dummy[dummy < thres[(i - 1)]] <- i
dummy[dummy >= thres[(i - 1)]] <- NA
dummy[dummy < thres[(i - 1)]] <- i
class[[i]] <- dummy
} else {
dummy <- raster::raster(files[i])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment