Skip to content

Commit

Permalink
move highcharter to suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
cstubben committed Dec 9, 2024
1 parent fb3461a commit 14a791c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ Imports:
SummarizedExperiment,
Biobase,
S4Vectors,
highcharter,
pheatmap,
RColorBrewer,
htmlwidgets,
openxlsx,
biomaRt,
dendsort,
ggrepel,
ggplot2
Suggests:
clusterProfiler,
highcharter,
htmlwidgets,
fgsea,
dendextend
License: GPL-3
Expand Down
3 changes: 2 additions & 1 deletion R/plot_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ plot_pca <- function(object, intgroup="trt", tooltip, label, ntop = 500, relevel
p
}else{
if(!label %in% names(colMetadata) ) stop("name is missing from colData(object)")
p + ggrepel::geom_text_repel(ggplot2::aes(label=colMetadata[[label]]), cex=3, box.padding=.2, show.legend=FALSE)
dotlabels <- colMetadata[[label]]
p + ggrepel::geom_text_repel(ggplot2::aes(label=dotlabels), cex=3, box.padding=.2, show.legend=FALSE)
}
}else{
# if tooltip is missing use column names
Expand Down

0 comments on commit 14a791c

Please sign in to comment.