View source: R/heritability_cor_scatterplot.R
heritability_cor_scatterplot | R Documentation |
Plot the scatterplot for the pearson correlation coefficients(PCC) for each genes. pearson methods for each gene expression and gPAS score in each cells.
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
)
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 |
scatterplot
Chunyu Deng
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.