grid_distribution {netdiffuseR} | R Documentation |
Distribution over a grid
Description
Distribution of pairs over a grid of fix size.
Usage
grid_distribution(x, y, nlevels = 100L)
Arguments
x |
Numeric vector of size |
y |
Numeric vector of size |
nlevels |
Integer scalar. Number of bins to return |
Details
This function ment for internal use only.
Value
Returns a list with three elements
x |
Numeric vector of size |
y |
Numeric vector of size |
z |
Numeric matrix of size |
Examples
# Generating random vectors of size 100 x <- rnorm(100) y <- rnorm(100) # Calculating distribution grid_distribution(x,y,20)
See Also
Used by plot_infectsuscep
Other visualizations:
dgr()
,
diffusionMap()
,
drawColorKey()
,
hazard_rate()
,
plot_adopters()
,
plot_diffnet2()
,
plot_diffnet()
,
plot_infectsuscep()
,
plot_threshold()
,
rescale_vertex_igraph()
[Package netdiffuseR version 1.22.6 Index]