Learn R Programming

amber (version 1.0.3)

intFun.addBWtext: Add text to raster

Description

This function adds text to raster. A threshold value determines whether the text is black or white

Usage

intFun.addBWtext(myRaster, myDigits = 1, myCex = 0.7)

Arguments

myRaster

A raster object

myDigits

An integer that gives the number of desired digits

myDigits

A number that determines the size of the text, e.g. 0.7

Value

plots text of a raster object

Examples

Run this code
# NOT RUN {
library(raster)
# make some data
data <- runif(100,-1,1)
data <- matrix(data, ncol=10)
data <- raster::raster(data)

plot(data)
intFun.addBWtext(myRaster = data, myDigits = 1, myCex = 0.7)

# }

Run the code above in your browser using DataLab