This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Adding legend to word cloud

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

This doesn't look like a Bioinformatics question.

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

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

Yes it is. Thanks for the suggestion.

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)

0 answers

No answers yet.

Log in to answer this question.