| grid_metrics | R Documentation | 
Calculates a specified metric for each grid tile in the image and plots the metrics for the grid tiles.
grid_metrics(spe_object, FUN, n_split, ...)
| spe_object | SpatialExperiment object in the form of the output of
 | 
| FUN | Variable name specifying the metric to be calculated. | 
| n_split | Integer specifying the number of splits for the calculation of metrics. This number is the splits on each side (e.g. 'n_split' = 3 means the image will be split into 9 tiles.) | 
| ... | Arguments of FUN | 
A list of the metrics of all grid tiles
grid <- grid_metrics(SPIAT::defined_image, FUN = calculate_entropy, n_split = 5,
cell_types_of_interest=c("Tumour","Immune3"), feature_colname = "Cell.Type")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.