Skip to contents

This function will create a lovely, evenly spaced colour palette designed for use with bathymetry plots.

Usage

fl_topocolorscale(v)

Arguments

v

Expects a single negative numeric value. This should be the maximum depth of the bathymetry.

Value

A list containing two vectors. First the numeric breaks (brks) that will be shown as different isobath colours. Second the colours (colors) that will be shown. The colours are given as hexadecimal values.

Author

Bernard Gentili

Examples

fl_topocolorscale(-200)
#> $brks
#>  [1] -200 -190 -180 -170 -160 -150 -140 -130 -120 -110 -100  -90  -80  -70  -60
#> [16]  -50  -40  -30  -20  -10    0
#> 
#> $colors
#>  [1] "#213F77" "#21498B" "#2153A0" "#1E5DB5" "#1C67CB" "#1171E1" "#047CF8"
#>  [8] "#0080FF" "#0080FF" "#1985FF" "#478EFF" "#6997FF" "#7CA1FF" "#8EABFF"
#> [15] "#9EB5FF" "#AEBFFF" "#BCC9FF" "#C9D3FF" "#D7DEFF" "#E4E8FF"
#>