plot a density figure

plot_GRaNPA_density(
  GRaNPA.object,
  outputFolder,
  plot_name,
  width = 5,
  height = 5,
  range = NULL
)

Arguments

GRaNPA.object

GRaNPA object, An output from GRaNPA main function.

outputFolder

Absolute file path. No default.

plot_name

Exact name of the plot

width

width of the plot which be used by ggsave

height

height of the plot which be used by ggsave

range

optional range of the R^2 (xaxis) for comparing different density plot with each other. Default is NULL.

Value

The final density plot

Examples

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