showPolygonSizeInfluence
showPolygonSizeInfluence(
gobject = NULL,
spat_unit = NULL,
alt_spat_unit = NULL,
feat_type = NULL,
clus_name = "kmeans",
return_plot = FALSE,
verbose = FALSE
)
giotto object
spatial unit
alternaitve spatial unit which represents resized polygon data
feature type
name of cluster column in cell_metadata for given spat_unit and alt_spat_unit, i.e. "kmeans"
logical. whether to return the plot object
be verbose
giotto object with altered cell_metadata
Compares cell metadata from spat_unit-feat_type pairs as provided.
New columns, resize_switch and cluster_interaction, will be created within cell_metadata for spat_unit-feat_type.
These new columns will describe if a given cell switched cluster number when resized. If the same amount of clusters exist for spat_unit-feat_type and alt_spat_unit-feat_type, then clusters are determined to be corresponding based on
Otherwise, multiple clusters from the spatial unit feature type pair are condensed to align with the smaller number of clusters and ensure overlap.