Skip to content

Commit f73a572

Browse files
committed
update
1 parent 47078f5 commit f73a572

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

R/visualization-QC.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,9 @@ setGeneric("relative_heatmap_plot",function(object,...) standardGeneric("relativ
900900
#' \code{"rel2stop"} to plot relative to stop codon. Default is \code{"rel2start"}.
901901
#' @param read_length A numeric vector of length 2 specifying the range of read lengths to include in the plot. Default is \code{c(20, 35)}.
902902
#' @param rel_dist A numeric vector of length 2 specifying the range of relative distances to plot. Default is \code{c(-100, 100)}.
903+
#' @param facet A ggplot2 faceting specification, e.g.
904+
#' \code{ggplot2::facet_wrap(~sample, scales = "free")}.
905+
#' Default is \code{ggplot2::facet_wrap(~sample, scales = "free")}.
903906
#' @param log_scale A logical value indicating whether to apply a logarithmic transformation to counts. Default is \code{FALSE}.
904907
#' @param return_data A logical value determining the return type. If \code{TRUE}, the summarized data is returned; if \code{FALSE}, the plot object is returned. Default is \code{FALSE}.
905908
#'
@@ -925,6 +928,7 @@ setMethod("relative_heatmap_plot",
925928
type = c("rel2start","rel2stop"),
926929
read_length = c(20,35),
927930
rel_dist = c(-100,100),
931+
facet = ggplot2::facet_wrap(~sample,scales = "free"),
928932
log_scale = FALSE,
929933
return_data = FALSE){
930934

@@ -976,7 +980,7 @@ setMethod("relative_heatmap_plot",
976980
p <-
977981
ggplot(summary.info) +
978982
layer +
979-
facet_wrap(~sample,scales = "free") +
983+
facet +
980984
theme(axis.text = element_text(colour = "black"),
981985
panel.grid = element_blank(),
982986
strip.text = element_text(colour = "black",size = rel(1),face = "bold")) +

man/relative_heatmap_plot.Rd

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)