Bootstrap_P_Barplot
Bootstrap_P_Barplot.Rd
This bar plot shows the -log2(p value) for bootstrap result, using the ggplot packages
Usage
Bootstrap_P_Barplot(
p_results,
p_names,
title = "Test scPagwas",
figurenames = NULL,
width = 5,
height = 7,
do_plot = TRUE
)
Arguments
- 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.
Examples
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"
)