visualize_spatial_network(posi, sample="SP8", reference_type="Macrophage",
target_type="Epithelial_cells_A",
x_col = "pxl_row_in_fullres",
y_col = "pxl_col_in_fullres",
type_col = "celltype_ABCDepi",
color_palette = c("Macrophage" = "#90ee90",
"Epithelial_cells_A" = "#377EB8"))
Run the code above in your browser using DataLab