sp_grid_kern_bin | R Documentation |
Title
sp_grid_kern_bin( data, coord, min_num = 15, h, n = 25, tot_norm = TRUE, Xlim = range(coord[, 1]), Ylim = range(coord[, 2]) )
data |
Cell type dummy table |
coord |
Coordinates data with X and Y columns |
min_num |
For cells number < min_num, add 1 till min_num |
h |
Bandwidths for x and y directions, more details in kde2d function in MASS package |
n |
Number of grid points in each directions, more details in kde2d function in MASS package |
tot_norm |
Normalization by total? |
Xlim |
The limits of X-axis |
Ylim |
The limits of Y-axis |
Kenerl density on grid
kern_res <- sp_grid_kern_bin(data=cell_dummy_df, coord=coord_df, h=150, n=25, tot_norm=TRUE, Xlim=range(coord_df$X), Ylim=range(coor_df$Y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.