Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

Automated Model Benchmarking R Package

v1.0.3
GPL-3
Authors
Christian Seiler [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.