Skip to content

Commit

Permalink
Bug fix in plot_gsea
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrostrusso committed Nov 21, 2018
1 parent 6a3cfe9 commit e1f36d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ setMethod('plot_gsea', signature('CEMiTool'),
nes_melted <- reshape2::melt(nes)
colnames(nes_melted) <- c("Module", "Class", "NES")
nes_melted$Module <- factor(nes_melted$Module, levels=row_order)
nes_melted$Class <- as.character(nes_melted$Class)
max_abs_nes <- max(abs(nes_melted$NES))
res <- ggplot(nes_melted, aes_(x=~Class, y=~Module, size=~abs(NES), fill=~NES)) +
geom_point(color = "white", shape=21) +
Expand Down

0 comments on commit e1f36d4

Please sign in to comment.