Skip to content

Commit

Permalink
fixed bug in SampleBarplot
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmorley committed Mar 3, 2022
1 parent 34802cd commit 429b335
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion R/Plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ sampleBarGraph <- function(object,group.by=NULL,col=NULL){
ggplot(.,aes(x=!!sym(group.by),y=pct,fill=sample)) +
geom_bar(position="fill", stat="identity") +
scale_y_continuous(labels = scales::percent_format()) +
scale_fill_manual(values=col) +
theme_bw() + theme(legend.position = 'bottom')

if(!is.null(col)){
Expand Down

0 comments on commit 429b335

Please sign in to comment.