plot_Strength_localized {SpaCCI} | R Documentation |
Plot Localized Hotspot Strength Pattern
Description
Visualize the inferred cell-cell interaction localized pattern if NOT using Seurat Object
Usage
plot_Strength_localized(
spatial_coord,
resultdf_list,
RegionIDs_matrix,
celltype_ligand,
celltype_receptor,
plot_size,
L_R_pair_name = NULL
)
Arguments
spatial_coord |
A data frame of the spatial coordinates. The columns should include |
resultdf_list |
A result of data frame list from the output of |
RegionIDs_matrix |
A result of matrix list from the output of |
celltype_ligand |
Ligand cell type string inputted by user, the name of the cell type should match the names in the |
celltype_receptor |
Receptor cell type string inputted by user, the name of the cell type should match the names in the |
plot_size |
As this function incorporate with |
L_R_pair_name |
Initially this is set to |
Value
The localized plot from the inferred cell-cell interaction on the local scale.
Examples
# Run localized hotspot plot
Result <- run_SpaCCI(..., analysis_scale = "local",...)
local_plot <- plot_Strength_localized(spatial_coord = spatial_coords_df,
resultdf_list = Result$dataframelist,
RegionIDs_matrix = Result$RegionIDs_matrix,
celltype_ligand = "Beta_cells",
celltype_receptor = "T_ells",
plot_size = 3)