metagene: moving the legend
1
1
Entering edit mode
anton.kratz ▴ 60
@antonkratz-8836
Last seen 7 months ago
Japan, Tokyo, The Systems Biology Insti…

Regarding the metagene package (http://www.bioconductor.org/packages/release/bioc/html/metagene.html).

Can I move the legend of the final plot to a different position?

At the moment I am using the plot command like this:

mg$plot(title = "test metagene plot")

The legend then appears on the right of the plot, which is problematic. Can I move the legend somewhere else (f.e. top or bottom)?

metagene • 1.2k views
ADD COMMENT
4
Entering edit mode
@charles-joly-beauparlant-4777
Last seen 5.6 years ago
Canada

Hello Anton,

The simplest way to tweak the visual representation of the metagene plot is to extract the plot with the <font face="monospace">get_plot</font> function and use standard ggplot2 functions:

mg$plot(title = "test metagene plot")
p <- mg$get_plot()
p  + ggplot2::theme(legend.position="bottom")

Cheers!

Charles.

ADD COMMENT

Login before adding your answer.

Traffic: 418 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6