Call the Ripley's k function.
# S4 method for STGrid
plot_rip_k(
object,
correction = c("border", "isotropic", "Ripley", "translate"),
max_feat_label = 8,
color = NULL,
size = 4
)A STCompR object.
kind of correction should be displayed.
The maximum number of features to display. The features with the highest correction value (whatever the radius) are displayed.
The colors for the features to be displayed.
The size of the labels.
example_dataset()
#> |-- INFO : Dataset 11284233/files/Xenium_Mouse_Brain_Coronal_7g was already loaded.
plot_rip_k(compute_k_ripley(Xenium_Mouse_Brain_Coronal_7g[c("Ano1", "Chat", "Ebf3")]))
#> |-- INFO : >>> Estimating Ripley's reduced second moment function for all features.
#>
|
| | 0%
|
|================= | 33%
|
|================================= | 67%
|
|==================================================| 100%