Description Usage Arguments Value Examples
View source: R/st_change_key_bounds.R
Alter a key's bounds for display
1  | st_change_key_bounds(key, bounds)
 | 
key | 
 a key build using Vizumap::build_bkey  | 
bounds | 
 the new bounds to be added  | 
a key, of class "bivkey"
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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.