Bootstrap_P_Barplot | R Documentation |
This bar plot shows the -log2(p value) for bootstrap result, using the ggplot packages
Bootstrap_P_Barplot(
p_results,
p_names,
title = "Test scPagwas",
figurenames = NULL,
width = 5,
height = 7,
do_plot = TRUE
)
p_results |
vector p results |
p_names |
names for p |
title |
The title names of the plot |
figurenames |
The filename and address of the output plot, default is "test_barplot.pdf".IF figurenames= NULL, only plot the figure and have not pdf figure. |
width |
figure width, default is 5 |
height |
figure height,default is 7 |
do_plot |
whether to plot the plot. |
A figure of barplot in pdf format, red color is significant.
Chunyu Deng
library(scPagwas)
load(system.file("extdata", "Pagwas_data.RData", package = "scPagwas"))
Bootstrap_P_Barplot(
p_results = Pagwas_data@misc$bootstrap_results$bp_value[-1],
p_names = rownames(Pagwas_data@misc$bootstrap_results)[-1],
width = 5,
height = 7,
do_plot = TRUE,
title = "Test"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.