Function to create a mask above the background or foreground. (Funcao para criar uma mascara sobre o background ou foreground).
mask_raster(Class,legend,col,main,plot=TRUE)Returns an array (retorna uma matriz).
Raster object with pixels grouped into classes (Objeto do tipo raster com os pixels agrupados em classes).
Vector with the names corresponding to each class (Vetor os nomes correspondentes a cada classe).
Vector with the color names corresponding to each class (Vetor os nomes das cores correspondentes a cada classe).
Titulo da figura (Figure title)
Logic value, if TRUE the figure will be shown (Valor logico, se TRUE a figura sera apresentada)
Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)