count2d | R Documentation |

Count the number of occurrences of pairs of positive integers in two vectors, producing a matrix.

```
count2d(xb, yb, nb)
```

`xb` |
a vector of integers. |

`yb` |
a vector of integers. |

`nb` |
a vector of length 2 that provides the number of bins for the 2D histogram on |

This function builds a two-dimensional histogram, based on two two vectors of bin numbers (obtained
with `binit`

). Rows where `x[i] > nb[1]`

or `y[i] > nb[2]`

are discarded without a warning.

A matrix with `nb[1]`

rows and `nb[2]`

columns with counts.
It serves as the input for two-dimensional histogram smoothing.

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.