pal_numeric: Numeric palette

View source: R/pal_functs.R

pal_numericR Documentation

Numeric palette

Description

Function to generate a color palette for a variable based on a supplied dataframe

Usage

pal_numeric(var, colors, df, reverse = FALSE)

Arguments

var

A variable in the dataframe, supplied as a string

colors

Colors to supply to the palette argument in a colorNumeric() function

df

A spatial dataframe with a stripped geography

reverse

Whether to reverse the generated color palette


dpowerstp/leafletwrappers documentation built on Sept. 4, 2022, 10:19 a.m.