Skip to content

Commit

Permalink
addressing issue #56
Browse files Browse the repository at this point in the history
  • Loading branch information
tetomonti committed May 24, 2024
1 parent 9f9fea1 commit 307cb41
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions R/hyp_dots.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
dplyr::filter(significance <= cutoff) %>%
ggplot(aes(x = signature, y = label, color = significance, size = size)) +
geom_point() +
scale_color_continuous(low = "#114357", high = "#E53935", trans = .reverselog_trans(10)) +
scale_color_continuous(low = "#114357", high = "#E53935", trans = log_trans(10),
guide = guide_colorbar(reverse = TRUE)) +
labs(title = title, color = color.label) +
theme(
plot.title = element_text(hjust = 0.5),
Expand All @@ -105,10 +106,10 @@
p <- p + scale_size_continuous(trans = .reverselog_trans(10)) + labs(size = "Significance")
}
if (size_by == "genesets") {
#p <- p + scale_size_continuous(trans = scales::log10_trans()) + labs(size = "Genesets\nSize")
p <- p + scale_color_continuous(
high = "#114357", low = "#E53935", trans = scales::log10_trans(),
guide = guide_colorbar(reverse = TRUE)
p <- p + scale_size_continuous(trans = scales::log10_trans()) + labs(size = "Genesets\nSize")
# p <- p + scale_color_continuous(
# high = "#114357", low = "#E53935", trans = scales::log10_trans(),
# guide = guide_colorbar(reverse = TRUE)
)
}
return(p)
Expand Down

0 comments on commit 307cb41

Please sign in to comment.