Distribution of pairs over a grid of fix size.
grid_distribution(x, y, nlevels = 100L)Numeric vector of size \(n\)
Numeric vector of size \(n\)
Integer scalar. Number of bins to return
Returns a list with three elements
Numeric vector of size nlevels with the class marks for x
Numeric vector of size nlevels with the class marks for y
Numeric matrix of size nlevels by nlevels with the distribution
of the elements in terms of frequency
# Generating random vectors of size 100 x <- rnorm(100) y <- rnorm(100)
# Calculating distribution grid_distribution(x,y,20)
This function ment for internal use only.
Used by plot_infectsuscep
Other visualizations: dgr,
diffusionMap, drawColorKey,
hazard_rate, plot_adopters,
plot_diffnet2, plot_diffnet,
plot_infectsuscep,
plot_threshold,
rescale_vertex_igraph