Adding legend to word cloud
0
0
Entering edit mode
7.2 years ago
rjobmc • 0

Hi all, Please can someone help. I am trying to make a word cloud however I cant seem to make one that shows a gradient-legend representing the changes in frequency of my objects. I have tried googling but nothing seems to help. I am able to make the word cloud without problems, I just cant seem to add a legend/gradient. I am using the R package word cloud tool. Many thanks

R wordcloud legend • 3.4k views
ADD COMMENT
0
Entering edit mode

This doesn't look like a Bioinformatics question.

ADD REPLY
0
Entering edit mode

hmmm, if I wanna do it using R? Its for gene expression data.

ADD REPLY
0
Entering edit mode

So, it is GO terms? You need to show an example of some code. Maybe someone can help you then.

ADD REPLY
0
Entering edit mode

Yes it is. Thanks for the suggestion.

ADD REPLY
0
Entering edit mode

As a follow up to my question, the R code I am using is the following: R Package: Wordcloud Code:

wordcloud(d$word, d$freq, random.order=F, colors=(colorRampPalette(brewer.pal(9,"Blues"))(30)), scale=c(4, .4))

File "d" = filename

word = GO term

Freq = Fold enrichment

This allows me to make the word cloud but I cant find a way to make a legend with the "freq" range (fold enrichment)

ADD REPLY

Login before adding your answer.

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