st_bivariate_histogram: st_bivariate_histogram

Description Usage Arguments Details Value Examples

View source: R/st_bivariate_histogram.R

Description

Plot bivariate spatio-temporal data

Usage

1

Arguments

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?

Details

Assistance for the creation of bar chart levels was found at https://stackoverflow.com/questions/10834382/ggplot2-keep-unused-levels-barplot

Value

a ggplot

Examples

 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)

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