@@ -613,9 +613,9 @@ visualize.target <- function(dataSet, type = "bar", facet = TRUE,
613613 geom_errorbar(aes(ymin = mean - error , ymax = mean + error ),
614614 width = 0.3 ) +
615615 geom_point(data = plotData , aes(x = Condition , y = Abundance , color = Replicate ),
616- position = position_dodge(width = 0.3 ), size = 1 ) +
616+ shape = 18 , position = position_dodge(width = 0.3 ), size = 2 ) +
617617 facet_wrap(~ Protein ) +
618- labs(y = " Abundance" ) +
618+ labs(y = expression( " Abundance" ~ " ( \u 00B195% CI) " ) ) +
619619 theme_bw() +
620620 theme(legend.position = " bottom" )
621621 } else {
@@ -625,13 +625,12 @@ visualize.target <- function(dataSet, type = "bar", facet = TRUE,
625625 position = position_dodge(width = 0.8 ),
626626 width = 0.3 ) +
627627 geom_point(data = plotData , aes(x = Protein , y = Abundance ,
628- shape = Replicate ,
629- group = interaction(Protein , Condition )),
628+ group = Condition , shape = Replicate ),
630629 position = position_jitterdodge(dodge.width = 0.8 ,
631630 jitter.width = 0.3 ),
632631 size = 1 ) +
633632 guides(fill = guide_legend(override.aes = list (shape = NA )), shape = " none" ) +
634- labs(x = NULL , y = " Abundance" ) +
633+ labs(x = NULL , y = expression( " Abundance" ~ " ( \u 00B195% CI) " ) ) +
635634 theme_bw() +
636635 theme(legend.position = " bottom" )
637636 }
@@ -640,7 +639,7 @@ visualize.target <- function(dataSet, type = "bar", facet = TRUE,
640639 ggplot(plotData , aes(x = Condition , y = Abundance )) +
641640 geom_boxplot(width = 0.7 ) +
642641 geom_point(aes(color = Replicate ),
643- position = position_dodge(width = 0.3 ), size = 1 ) +
642+ shape = 18 , position = position_dodge(width = 0.3 ), size = 2 ) +
644643 facet_wrap(~ Protein ) +
645644 theme_bw() +
646645 theme(legend.position = " bottom" )
@@ -662,7 +661,7 @@ visualize.target <- function(dataSet, type = "bar", facet = TRUE,
662661 ggplot(plotData , aes(x = Condition , y = Abundance )) +
663662 geom_violin(width = 0.7 ) +
664663 geom_point(aes(color = Replicate ),
665- position = position_dodge(width = 0.1 ), size = 1 ) +
664+ shape = 18 , position = position_dodge(width = 0.1 ), size = 2 ) +
666665 facet_wrap(~ Protein ) +
667666 theme_bw() +
668667 theme(legend.position = " bottom" )
0 commit comments