intFun.addBWtext: Add text to raster

Description Usage Arguments Value Examples

View source: R/intFun.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
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)

amber documentation built on Aug. 28, 2020, 5:08 p.m.