Skip to content

Commit

Permalink
utils.R
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed Apr 29, 2024
1 parent b30d7eb commit 2ae8a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ plotSNVSummary <- function(stana, sp, param="mean_coverage", perSample=FALSE) {
if (length(stana@cl)!=0) {
df[["group"]] <- listToNV(stana@cl)[df$sample_name]
ggplot(df, aes(x=group, y=.data[[param]])) +
geom_boxplot(aes(fill=stana@colors), alpha=0.5) +
geom_boxplot(aes(fill=.data[[param]]), alpha=0.5) +
scale_fill_manual(values=stana@colors)+
cowplot::theme_cowplot()
} else {
ggplot(df, aes(y=.data[[param]])) +
Expand Down

0 comments on commit 2ae8a90

Please sign in to comment.