color_pal: Select a color palette

Description Usage Arguments Details Value

View source: R/color_pal.R

Description

color_pal() returns a color palette with values assigned to the values of a column in the accidents dataset.

Usage

1

Arguments

data

A dataframe, specifically the accidents dataset

a

A character string

Details

This function returns a color palette based on the input in the a argument. It is designed to color markers for a leaflet map in a shiny app based on user selection.

Value

A color palette assigned to the values of a column in the accidents dataset


ahvickers/accidenttracker documentation built on Dec. 18, 2021, 11:26 p.m.