View source: R/scatter_histogram.R
scatter_histogram | R Documentation |
Create histogram from given point coordinates.
scatter_histogram( xy, xlim = c(min(xy[, 1]), max(xy[, 1])), ylim = c(min(xy[, 2]), max(xy[, 2])), out_size = c(512, 512) )
xy |
2-column float matrix with point coordinates. As usual with
rasters in R, X axis grows right, and Y axis grows DOWN.
Flipping |
xlim |
Float limits as usual (position of the first pixel on the
left/top, and the last pixel on the right/bottom), 2-element vector.
You can easily flip the top/bottom to the "usual" mathematical
system by flipping the |
ylim |
Float limits as usual (position of the first pixel on the
left/top, and the last pixel on the right/bottom), 2-element vector.
You can easily flip the top/bottom to the "usual" mathematical
system by flipping the |
out_size |
2-element vector integer size of the result histogram,
defaults to |
Float histogram with the result (values ~ 0-1).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.