chillkernel: Perform a two-dimensional kernel density estimation for yield...

Description Usage Arguments Examples

View source: R/chillkernel.R

Description

Perform a two-dimensional kernel density estimation for yield and chill.

The function produces a matrix of the estimated density (z) of yield (y) and chill (x). As the density function restricts the shape of the kernel to a bivariate normal kernel, it looks slightly different compared to the scatter plot estimates in the pasitR::chillscatter() function. Density surface plot of chill portions (x) and yield (y). The legend shows the value for the estimated density (z).

Usage

1
chillkernel(chill, yield)

Arguments

chill

is a list of observed annual chill portions corresponding to another list with annual yields.

yield

is a list of observed annual yields corresponding to another list with annual chill portions.

Examples

1
2
3
chill <- sample(x = 1:50, size = 20, replace = TRUE)
yield <- sample(x = 1000:5000, size = 20, replace = TRUE)
chillkernel(chill, yield)

CWWhitney/pasitR documentation built on March 30, 2021, 5:36 a.m.