st_change_key_bounds: st_change_key_bounds

Description Usage Arguments Value Examples

View source: R/st_change_key_bounds.R

Description

Alter a key's bounds for display

Usage

1
st_change_key_bounds(key, bounds)

Arguments

key

a key build using Vizumap::build_bkey

bounds

the new bounds to be added

Value

a key, of class "bivkey"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
newBounds = c(-104, -2, 2, 202, -117, -2, 2, 150)
out = st_assign_colors(tmax, 1, tmin, 1, FALSE, bounds = newBounds)
data = out$data
colors = out$colors

bvh = st_bivariate_histogram(data = data, title = "Min/Max Temperature Distributions")
key = Vizumap::build_bkey(data, colors, terciles = FALSE)
key = st_change_key_bounds(key, newBounds)

attach_key(bvh, key)

JamesMCollier/densityviz documentation built on Dec. 18, 2021, 12:31 a.m.