Skip to content

Commit f21de38

Browse files
committed
feat: add text-all option to sampleTakenGuide
1 parent d57224f commit f21de38

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

R/jellyfisher.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#' \item{showLegend}{Whether to show the legend Defaults to \code{TRUE}.}
6262
#' \item{phylogenyColorScheme}{Whether to use a color scheme based on phylogeny Defaults to \code{TRUE}.}
6363
#' \item{phylogenyHueOffset}{Offset for the hue of the phylogeny color scheme. If the automatically generated hues are not to your liking, you can adjust the hue offset to get a different color scheme. Defaults to \code{0}.}
64-
#' \item{sampleTakenGuide}{Type of the "sample taken" guide. `"none"` for no guides, `"line"` for a faint dashed line in all samples, `"text"` same as line, but with a text label in one of the samples. Defaults to \code{"text"}.}
64+
#' \item{sampleTakenGuide}{Type of the "sample taken" guide. `"none"` for no guides, `"line"` for a faint dashed line in all samples, `"text"` same as line, but with a text label in one of the samples. `"text-all"` same as text, but with a text label in all samples. Defaults to \code{"text"}.}
6565
#' \item{showRankTitles}{Whether to show rank titles above the samples (if provided). Defaults to \code{TRUE}.}
6666
#' \item{normalsAtPhylogenyRoot}{Whether the root of the phylogenetic tree contains normal cells. If true, no tentacles will be drawn for the root clone and its color will be white if phylogenyColorScheme is used. Defaults to \code{FALSE}.}
6767
#' }
@@ -200,7 +200,7 @@ jellyfisher <- function(tables,
200200
if (options$phylogenyHueOffset > 360) stop("phylogenyHueOffset must be no greater than 360")
201201
}
202202
if (!is.null(options$sampleTakenGuide)) {
203-
if (!options$sampleTakenGuide %in% c("none", "line", "text")) stop("sampleTakenGuide must be one of: none, line, text")
203+
if (!options$sampleTakenGuide %in% c("none", "line", "text", "text-all")) stop("sampleTakenGuide must be one of: none, line, text, text-all")
204204
}
205205
if (!is.null(options$showRankTitles)) {
206206
if (!is.logical(options$showRankTitles)) stop("showRankTitles must be a boolean (TRUE or FALSE)")

0 commit comments

Comments
 (0)