How to plot REVIGO r script
2
2
Entering edit mode
9.8 years ago
kissaj ▴ 110

Hello,

I've used REVIGO to analyze my GO data and I'd like to plot it in r using the "r script". I do not understand how to do this. I have never used r and have no clue how to use it at all.

Can someone tell me (in a simple way) how to use the automagically generated r script from REVIGO?

Thanks,
Andor

revigo ggplot2 R • 8.6k views
ADD COMMENT
2
Entering edit mode
9.8 years ago
SES 8.6k

You need R installed (obviously), and once you have R open just change to the directory containing the script (with setwd()) and type:

source("REViGO.r")

You will likely have to open the script in text editor and uncomment the first line that starts with install.packages to install a required package (called "ggplot2") to do the plotting. Or, just open R and type install.packages("ggplot2",dep=t) followed by the source command above. That will bypass the editing step.

ADD COMMENT
1
Entering edit mode

Ok, got there - but then I get the following error:

source("REVIGO_BP100.r")
Error: Use scale_size_area instead.
  Note that the behavior of scale_size_area is slightly different:
  by default it makes the area proportional to the numeric value. (Defunct; last used in version 0.9.2)

Suggestions?

ADD REPLY
1
Entering edit mode

That is due to the use of an outdated function in the ggplot2 package. Try to change 'scale_area' to 'scale_size_area'.

ADD REPLY
1
Entering edit mode

Hi,

Yeah, I don't think they'll help out. I'll try, but, it's been my experience that the big drawback of free software is a complete lack of support after a tool has been developed and published.

My current "workaround" is to pull images from screen capture.

Regards,
Andor

ADD REPLY
0
Entering edit mode

This is not an answer to the question, so please post this type of response as a comment. That makes it easier for others to find answers. Also, there's no reason to think they won't help if you haven't tried! If they weren't supporting the tool then the web service wouldn't be available.

ADD REPLY
0
Entering edit mode

Sorry - didn't understand the difference...(between comment and answer)

ADD REPLY
0
Entering edit mode

No worries, it just helps to follow the discussion when you respond directly to a comment rather than somewhere else.

ADD REPLY
0
Entering edit mode

More issues

Scale for 'size' is already present. Adding another scale for 'size', which will replace the existing scale.
Scale for 'size' is already present. Adding another scale for 'size', which will replace the existing scale.
Error: Use 'theme' instead. (Defunct; last used in version 0.9.1)
ADD REPLY
0
Entering edit mode

I could help with these messages, but I can't see your exact script so we could go back and forth like this for quite a while. Just email the authors and ask them to update the code, I'm sure they will help since this tool is published.

ADD REPLY
0
Entering edit mode
8.5 years ago
Carin • 0

I know this is probably too late for you to use, but in case someone else has no experience with R and wants to plot the graph, Excel has a "Bubble Chart" that will give you want you need, though getting the different colours requires a bit of extra work. You just export the csv file and use the coordinates and plot size to draw the chart.

ADD COMMENT

Login before adding your answer.

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