Description Usage Arguments Details Value Examples See Also

Distribution of pairs over a grid of fix size.

1 | ```
grid_distribution(x, y, nlevels = 100L)
``` |

`x` |
Numeric vector of size |

`y` |
Numeric vector of size |

`nlevels` |
Integer scalar. Number of bins to return |

This function ment for internal use only.

Returns a list with three elements

`x` |
Numeric vector of size |

`y` |
Numeric vector of size |

`z` |
Numeric matrix of size |

1 2 3 4 5 6 | ```
# Generating random vectors of size 100
x <- rnorm(100)
y <- rnorm(100)
# Calculating distribution
grid_distribution(x,y,20)
``` |

Used by `plot_infectsuscep`

Other visualizations: `dgr`

,
`diffusionMap`

, `drawColorKey`

,
`hazard_rate`

, `plot_adopters`

,
`plot_diffnet2`

, `plot_diffnet`

,
`plot_infectsuscep`

,
`plot_threshold`

,
`rescale_vertex_igraph`

netdiffuseR documentation built on June 7, 2018, 5:05 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.