OpenGeoHub / spatial-sampling-ml

Rmarkdown tutorial on how to generate spatial sampling and how to use resampling methods for ML
https://opengeohub.github.io/spatial-sampling-ml/
Other
13 stars 6 forks source link

Prepare a wrapper function for plotting predictions / maps #4

Closed thengl closed 2 years ago

thengl commented 2 years ago

The current tutorial has longer code to plot maps, add title and customize plots. It would be nicer to use a wrapper function with plotting specifications e.g.:

plot.map <- function(x, y, mtext, ...){
}

where x is the grid, y are the points. For plotting comparison e.g. 2 maps next to each other we would need e.g.:

compare.map <- function(x.left, y.left, x.right, y.right, mtext, ...){
}

@abdelkrim-bsr can you please add this function and systematically adjust in the text?

abdelkrim-bsr commented 2 years ago

Good idea! I will look how many wrapper functions to implement.