Skip to content

Commit 0217544

Browse files
committed
update visualize.target() and vignettes
1 parent 97827bc commit 0217544

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

R/visualization.R

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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"~"(\u00B195% 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"~"(\u00B195% 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")

vignettes/visualization.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ complementing global visualizations like rank abundance plots.
251251

252252
```{r}
253253
visualize.target(dataImput, type = "violin", facet = TRUE,
254-
listName = "POLK_HUMAN", regexName = c("ZN840"))
254+
listName = "POLK_HUMAN", regexName = c("CHICK", "ZN840"))
255255
visualize.target(dataImput, type = "bar", facet = FALSE,
256-
listName = "POLK_HUMAN")
256+
listName = "POLK_HUMAN", regexName = c("CHICK", "ZN840"))
257257
```
258258

259259

0 commit comments

Comments
 (0)