Skip to contents

Plot the scatterplot for the pearson correlation coefficients(PCC) for each genes. pearson methods for each gene expression and gPAS score in each cells.

Usage

heritability_cor_scatterplot(
  gene_heri_cor = NULL,
  topn_genes_label = 10,
  color_low = "#035397",
  color_high = "#F32424",
  color_mid = "white",
  text_size = 3,
  do_plot = TRUE,
  max.overlaps = 10,
  figurenames = NULL,
  width = 7,
  height = 7
)

Arguments

gene_heri_cor

PCC result for scPagwas.

topn_genes_label

10, the number of top genes for correlation.

color_low

low color

color_high

high color

color_mid

mid color

text_size

text size

do_plot

parametr for "geom_label_repel", Exclude text labels that overlap too many things. Defaults to 10.

max.overlaps

mac over

figurenames

The filename and address of the output plot

width

figure width

height

figure height

Value

scatterplot

Author

Chunyu Deng

Examples

load(system.file("extdata", "Pagwas_data.RData", package = "scPagwas"))
heritability_cor_scatterplot(
  gene_heri_cor = Pagwas_data@misc$PCC,
  topn_genes_label = 10,
  color_low = "#035397",
  color_high = "#F32424",
  color_mid = "white",
  text_size = 2,
  do_plot = TRUE,
  max.overlaps = 20,
  width = 7,
  height = 7
)
#> Error in rep(NA, nrow(gene_heri_cor)): invalid 'times' argument