0
0
Entering edit mode
4.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 • 2.2k views
0
Entering edit mode

This doesn't look like a Bioinformatics question.

0
Entering edit mode

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

0
Entering edit mode

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

0
Entering edit mode

Yes it is. Thanks for the suggestion.

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)