scaleImage: Function for Generating a legend from fcol

Description Usage Arguments Details Value

View source: R/scaleImage.R

Description

Function for Generating a legend from fcol

Usage

1
scaleImage(fcol, lv, nb = 0, w = 5, h = 10)

Arguments

fcol

function to convert raster values into an hex colour scheme

lv

values to label on the legend

nb

number of values to generate between the legend values

w

width of plot

h

height of plot

Details

fcol should take a vector of n values and return an n hex colour values which should include transparency.

Value

String of class svg from svglite containing the svg image.


waternumbers/wmts documentation built on Dec. 23, 2021, 5:08 p.m.