Description
Hi,
I've been using clusterProfiler for a long time now and have been mostly satisfied with all the functionalities, thank you! However, in the recent update the color settings changed, which has been discussed already multiple times in the Issues here or elsewhere. I find the only possible solution via options() very inconvenient, because it prevents the color scales from being modified completely. I like to fine tune my scales through scale_color_gradient() and other settings, not only color-wise. This is impossible in the new version, as the options() overwrite everything else.
One recent example is the legend for p-value in a dotplot, which I would like to be horizontal and below the plot (see the code below). The default setting puts higher p-vals to the left and lower to the right. To improve readability of the plot, I would like to simply flip the colorbar with the values (lower left, higher right). It is impossible to do with standard settings like scale_color_gradient(low = "#990000", high = "#eaeaea", guide = guide_colorbar(reverse = TRUE)).
options(enrichplot.colours = c("#990000","#eaeaea"))
dotplot(merged.GO.plot, by = "Count", showCategory = 5, includeAll = T, label_format = 50) +
theme(
legend.position = "inside",
legend.direction = "horizontal",
legend.justification = c(1,-0.5),
legend.box = "horizontal"
)
Sure I'm not the only one fighting this or similar issues. Please, if there is any workaround, I would like to know, otherwise, could you consider this in the next update?
Thank you!