h_grid: Generate grid of plausible bandwidths for condensed summary.

Description Usage Arguments See Also Examples

View source: R/h.r

Description

By default, the bandwidths start at the bin width, and then continue up 50 (n) steps until 20 (max) times the bin width.

Usage

1
h_grid(x, n = 50, max = 20)

Arguments

x

a condensed summary

n

number of bandwidths to generate (in each dimension)

max

maximum bandwidth to generate, as multiple of binwidth.

See Also

Other bandwidth estimation functions: best_h; rmse_cv, rmse_cvs

Examples

1
2
3
4
5
6
7
x <- rchallenge(1e4)
xsum <- condense(bin(x, 1 / 10))
h_grid(xsum)

y <- runif(1e4)
xysum <- condense(bin(x, 1 / 10), bin(y, 1 / 100))
h_grid(xysum, n = 10)

hadley/bigvis documentation built on May 17, 2019, 9:45 a.m.