Skip to content

Commit b11d943

Browse files
author
Marco Chiapello
committed
Fixed order in trouvelot plots => F-M-a-A
1 parent 7b37e5d commit b11d943

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/methods-trouvelot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ am_barplot.trouvelot <- function(x, cbPalette = c("#999999", "#E69F00", "#56B4E9
7070
ylim(-0.5, 110) +
7171
annotate("text", x = seq(length(unique(final3$samples)) * .5 + .5, length(unique(final3$samples)) * 5 + .5,
7272
length(unique(final3$samples)))[1:4],
73-
y = 110, label = c("F%", "A%", "a%", "M%")) +
73+
y = 110, label = c("F%", "M%", "a%", "A%")) +
7474
scale_x_discrete(labels = rep(unique(x$samples), 5)) +
7575
scale_fill_manual(values = cbPalette, breaks = levels(factor(final3$samples, levels = unique(x$samples))))
7676
class(a1) <- c("am_plot", class(a1))
@@ -113,7 +113,7 @@ am_boxplot.trouvelot <- function(x, cbPalette = c("#999999", "#E69F00", "#56B4E9
113113
ylim(-0.5, 110) +
114114
annotate("text", x = seq(length(unique(fin$samples)) * .5 + .5, length(unique(fin$samples)) * 5 + .5,
115115
length(unique(fin$samples)))[1:4],
116-
y = 110, label = c("F%", "A%", "a%", "M%")) +
116+
y = 110, label = c("F%", "M%", "a%", "A%")) +
117117
scale_x_discrete(labels = rep(unique(x$samples), 5)) +
118118
scale_colour_manual(values = cbPalette, breaks = levels(factor(fin$feature, levels = c("F", "A", "a", "M"))))
119119
class(a2) <- c("am_plot", class(a2))

0 commit comments

Comments
 (0)