Calculate the spatial diversity of base line metrics
calSpatialMetricsDiversity(spe, celltype, bin_width = 500)
Arguments
- spe
A Spatial Experiment object
- celltype
A string or a vector indicating the cell type information.
If it is a string, it will retrive the information from colData.
- bin_width
A numeric indicates the width of the bin.
Value
A SpatialExperiment object