sp_grid_kern_bin: Title

View source: R/scoloc.R

sp_grid_kern_binR Documentation

Title

Description

Title

Usage

sp_grid_kern_bin(
  data,
  coord,
  min_num = 15,
  h,
  n = 25,
  tot_norm = TRUE,
  Xlim = range(coord[, 1]),
  Ylim = range(coord[, 2])
)

Arguments

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

Value

Kenerl density on grid

Examples

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))

navinlabcode/CellTrek documentation built on April 15, 2022, 8:04 a.m.