Skip to content

Commit

Permalink
dontrun example gridArrangeSharedLegend
Browse files Browse the repository at this point in the history
  • Loading branch information
trvinh committed Oct 28, 2024
1 parent 46a29d3 commit a99e78a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: PhyloProfile
Version: 1.19.12
Date: 2024-10-07
Version: 1.19.13
Date: 2024-10-28
Title: PhyloProfile
Authors@R: c(
person("Vinh", "Tran", role = c("aut", "cre"), email = "[email protected]", comment=c(ORCID="0000-0001-6772-7595")),
Expand Down
4 changes: 3 additions & 1 deletion R/compareTaxaGroups.R
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ generateSinglePlot <- function(plotDf, parameters, variable) {
scale_x_discrete(labels = xNames) +
# add mean/median point and color of that point
stat_summary(
aes(colour = parameters$mValue), fun.y = parameters$mValue,
aes(colour = parameters$mValue), fun = parameters$mValue,
geom = "point", size = 3, show.legend = TRUE, shape = 8
) +
scale_color_manual("", values = c("red")) +
Expand Down Expand Up @@ -359,6 +359,7 @@ generateSinglePlot <- function(plotDf, parameters, variable) {
#' @note adapted from https://rdrr.io/github/PhilBoileau/CLSAR/src/R/
#' gridArrangeSharedLegend.R
#' @examples
#' \dontrun{
#' data("mainLongRaw", package="PhyloProfile")
#' data <- mainLongRaw
#' inGroup <- c("ncbi9606", "ncbi10116")
Expand All @@ -383,6 +384,7 @@ generateSinglePlot <- function(plotDf, parameters, variable) {
#' title = plotParameters$title,
#' size = plotParameters$titleSize
#' )
#' }

gridArrangeSharedLegend <- function(
..., ncol = length(list(...)), nrow = 1, position = c("bottom", "right"),
Expand Down
2 changes: 2 additions & 0 deletions man/gridArrangeSharedLegend.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a99e78a

Please sign in to comment.