Scatter plot by cummeRbund
1
0
Entering edit mode
7.4 years ago
saj98 ▴ 140

Hello Everyone

I am using cummeRbund package to create scatter plot. I need help to guide me how to present the significant genes in different color. I tried the following codes, but it did not work, and I am attaching my figure. Does anybody have any idea how to change the color? Thanks for help

>library(cummeRbund)
>cuff<-readCufflinks()
> cuff
> s<-csScatterMatrix(genes(cuff))
> s
> m<-MAplot(genes(cuff),"q3","q6")
> m
>m <- fpkmMatrix(genes(cuff))
> cor(m[, 1], m[, 6])
> s<-csScatter(genes(cuff),"q3","q6",smooth=T)
> s
> s<-csScatter(genes(cuff),"q3","q6",smooth=T, showSignificant=TRUE, alpha=0.05, mapping=aes(size=5))
> s
RNA-Seq R • 2.0k views
ADD COMMENT
0
Entering edit mode

I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:

101010 Button

This is not the first time that I have to tell you this. Please take this into account when asking questions.

ADD REPLY
1
Entering edit mode
7.4 years ago
theobroma22 ★ 1.2k

From the manual, the scatter plot is not used to show groups of genes, so this functionality may not be doable from inside cummerbund. However you may be able to use ggplot2 and designate your genes using the group argument as an aesthetics.

ADD COMMENT

Login before adding your answer.

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