labelling limma volcano plot interactively
2
0
Entering edit mode
@christopherclarskon15-9965
Last seen 8.1 years ago

I have highlighted the different points in my volcano plot according to their probe type i.e. miRNA, snoRNA etc. with the row names of the microarray data as follows:

renderPlot({volcanoplot(fit, col=as.factor(getType(rownames(MA))), names=rownames(MA), legend=as.factor(rownames(MA)), main="Volcano")})

The part highlighted in yellow is what's giving me an error I just need a legend beside the plot to show what each colour stands for, but "legend" is not included as an argument of limma's volcanoplot...?

limma • 1.3k views
ADD COMMENT
0
Entering edit mode
Axel Klenk ★ 1.0k
@axel-klenk-3224
Last seen 5 hours ago
UPF, Barcelona, Spain

Dear Christopher,

I'm counting 8 opening but only 7 closing parentheses in your code snippet.

Cheers,

 - axel

 

ADD COMMENT
0
Entering edit mode
@gordon-smyth
Last seen 3 hours ago
WEHI, Melbourne, Australia

Type

?legend

Legends are added to plots, not made during the plot.

ADD COMMENT

Login before adding your answer.

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