plot_GRaNPA_density.Rd
plot a density figure
plot_GRaNPA_density(
GRaNPA.object,
outputFolder,
plot_name,
width = 5,
height = 5,
range = NULL
)
GRaNPA object, An output from GRaNPA main function.
Absolute file path. No default.
Exact name of the plot
width of the plot which be used by ggsave
height of the plot which be used by ggsave
optional range of the R^2 (xaxis) for comparing different density plot with each other. Default is NULL.
The final density plot
plot_GRaNPA_density(GRaNPA.object, "your/path/" , "density_plot" , width = 8, height = 6)
#> Error in data.frame(r2 = c(GRaNPA.object$normal_dist$N_ranger_model_rsq, GRaNPA.object$random_dist$RG_ranger_model_rsq, GRaNPA.object$CR_dist$RC_ranger_model_rsq), type = rep(c("Actual GRN", "Randomized GRN", "QC GRN"), c(nrow(GRaNPA.object$normal_dist), nrow(GRaNPA.object$random_dist), nrow(GRaNPA.object$CR_dist)))): object 'GRaNPA.object' not found