Skip to content

Commit 2ae8a90

Browse files
committed
utils.R
1 parent b30d7eb commit 2ae8a90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/utils.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ plotSNVSummary <- function(stana, sp, param="mean_coverage", perSample=FALSE) {
119119
if (length(stana@cl)!=0) {
120120
df[["group"]] <- listToNV(stana@cl)[df$sample_name]
121121
ggplot(df, aes(x=group, y=.data[[param]])) +
122-
geom_boxplot(aes(fill=stana@colors), alpha=0.5) +
122+
geom_boxplot(aes(fill=.data[[param]]), alpha=0.5) +
123+
scale_fill_manual(values=stana@colors)+
123124
cowplot::theme_cowplot()
124125
} else {
125126
ggplot(df, aes(y=.data[[param]])) +

0 commit comments

Comments
 (0)