Closed bmplaw closed 5 years ago
Thanks - I will check this out. As a temporary solution, this will probably work:
EnhancedVolcano(...) + theme(legend.position = 'none')
Hi Kevin, Thank you for the suggestion.
I also want to say that I am very new to R and your bioconductor tutorial is very easy to follow. Thank you for providing such an useful package.
If you dont mind me asking, is there away to organise the order of custom legend labels?
Thanks again. Becker
On Tue, Aug 20, 2019 at 10:27 AM Kevin Blighe notifications@github.com wrote:
Thanks - I will check this out. As a temporary solution, this will probably work: EnhancedVolcano(...) + theme(legend.position = 'none')
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinblighe/EnhancedVolcano/issues/23?email_source=notifications&email_token=AM57OMK5PYJZIVRMWKIE4ZTQFNJBNA5CNFSM4IMYK7ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4U3E4A#issuecomment-522826352, or mute the thread https://github.com/notifications/unsubscribe-auth/AM57OMIVXPX4NLE3JPDQKJLQFNJBNANCNFSM4IMYK7ZA .
Hey Becker, thank you for the kind words. I think that it is possible to control the order of the custom legend. If you follow the example from the vignette, (here: https://github.com/kevinblighe/EnhancedVolcano#over-ride-colouring-scheme-with-custom-key-value-pairs ), then I think that you can control the order like this:
myvolcano <- EnhancedVolcano(
...,
colCustom = keyvals,
...)
myvolcano + scale_color_manual(
values=c(
low="royalblue",
Mid="black",
high="gold"),
labels=c(
low='Lowest',
Mid="Middle",
high='Highest')))
So, that should order it as low -> Mid ->
For shape, it would be + scale_shape_manual(...)
Does that make sense?
Please re-open this issue if you still require help.
Kind regards, Kevin
legendVisible = FALSE does not hide the legend created for the custom key-value pairs