Skip to contents

Plot correlation between methods on spatial data

Usage

plt_method_correlation(
  spatial_obj,
  level = 1,
  nrow = 1,
  cor_fill_limits = c(0, 1),
  cor_text_size = 3
)

Arguments

spatial_obj

an `Seurat` object with a Spatial assay with `deconverse::deconvolute` results

level

a level of annotation to plot. If NULL, the finest level will be plotted.

nrow

number of rows of the plot facets

cor_fill_limits

a vector with two numbers, representing the lower and upper limits of the color scale for the correlation

cor_text_size

a number, representing the size of the text of the correlation in the plot tiles.

Value

a list containing the plot and table for the comparisons