riboSeqR: legend in plotFS
1
0
Entering edit mode
@antonvilas-7285
Last seen 9.1 years ago
Spain

Hi Tom,

i'd like to change the position of the legend in plotFS, as it sits on top of some of the bars. Can you tell me how to do this?

best,

Antón

riboseqr • 1.2k views
ADD COMMENT
0
Entering edit mode
@thomas-j-hardcastle-3860
Last seen 7.1 years ago
United Kingdom

The underlying plotting function of plotFS is barplot, and you can pass barplot arguments to plotFS; the legend arguments in barplot are defined in the args.legend variable. So, if you wanted to move the legend to the top left corner:

plotFS(fS, args.legend = list(x = "topleft"))

 

Cheers,

Tom

 

ADD COMMENT

Login before adding your answer.

Traffic: 795 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