
Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'RasterLayer':
text(x, labels, digits=0, fun=NULL, ...)
## S3 method for class 'RasterStackBrick':
text(x, labels, digits=0, fun=NULL, ...)
## S3 method for class 'SpatialPolygons':
text(x, labels, ...)
## S3 method for class 'SpatialPoints':
text(x, labels, ...)
length(x)
or a variable name from names(x)
rasterToPoints
text
text, plot
r <- raster(nrows=4, ncols=4)
r <- setValues(r, 1:ncell(r))
plot(r)
text(r)
plot(r, col=bpy.colors(5))
text(r, fun=function(x){x<5 | x>12}, col=c('red', 'white'), vfont=c("sans serif", "bold"), cex=2)
Run the code above in your browser using DataLab