Description Usage Arguments Details Value Examples
View source: R/st_bivariate_histogram.R
Plot bivariate spatio-temporal data
1 | st_bivariate_histogram(data, ymax = NULL, title)
|
data |
data frame containing data from two attributes, the binned information and colour code. |
ymax |
if custom maximum y-axis value is desired, default NULL |
title |
title of plot |
terciles |
should terciles be calculated? |
Assistance for the creation of bar chart levels was found at https://stackoverflow.com/questions/10834382/ggplot2-keep-unused-levels-barplot
a ggplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Preparing the data
out <- st_assign_colors(tmax, 1, tmin, 1, terciles = FALSE)
data <- out$data
colors <- out$colors
bounds <- out$bounds
# generating and plotting the histogram
bvh <- st_bivariate_histogram(data = data,
title = "Max/Min temperature distribution")
bvh
# creating and attaching the key
key <- Vizumap::build_bkey(data, colors, terciles = TRUE)
Vizumap::view(key)
attach_key(bvh, key)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.