RNA degradation plot
1
0
Entering edit mode
Assa Yeroslaviz ★ 1.5k
@assa-yeroslaviz-1597
Last seen 21 days ago
Germany
Hi, I would like to know, if there is a possibility to plot the RNA Degradation with different line types. I tried it this way: deg <- AffyRNAdeg(affybatch) plotAffyRNAdeg(deg ,col = 1:length(ArrayIndex_norm)) legend(-1.5, 75, as.character(sampleNames(eset)), lty = 1:length(ArrayIndex_norm), col = 1:length(ArrayIndex_norm), cex = 0.6) But I'm getting only solid lines in my graph, but different types of lines in my legend. Is it possible to present several types of lines in my plot? THX Assa [[alternative HTML version deleted]]
graph graph • 1.2k views
ADD COMMENT
0
Entering edit mode
@benilton-carvalho-1375
Last seen 4.7 years ago
Brazil/Campinas/UNICAMP
you need to pass 'lty' also to the plotAffyRNAdeg function (as you did with legend). b On Mon, Apr 12, 2010 at 12:49 PM, Assa Yeroslaviz <frymor at="" gmail.com=""> wrote: > Hi, > > I would like to know, if there is a possibility to plot the RNA Degradation > with different line types. > I tried it this way: > > deg <- AffyRNAdeg(affybatch) > plotAffyRNAdeg(deg ,col = 1:length(ArrayIndex_norm)) > legend(-1.5, 75, > ? ?as.character(sampleNames(eset)), > ? ?lty = 1:length(ArrayIndex_norm), > ? ?col = 1:length(ArrayIndex_norm), cex = 0.6) > > But I'm getting only solid lines in my graph, but different types of lines > in my legend. > > Is it possible to present several types of lines in my plot? > > THX > > Assa > > ? ? ? ?[[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor >
ADD COMMENT
0
Entering edit mode
nope that won't work: deg <- AffyRNAdeg(affybatch) plotAffyRNAdeg(deg, lty = 1:length(ArrayIndex_norm),col = 1:length(ArrayIndex_norm)) legend(-1.5, 75, as.character(sampleNames(eset)), lty = 1:length(ArrayIndex_norm), col = 1:length(ArrayIndex_norm), cex = 0.6) All of my lines are still solid. On Mon, Apr 12, 2010 at 14:01, Benilton Carvalho <beniltoncarvalho@gmail.com> wrote: > you need to pass 'lty' also to the plotAffyRNAdeg function (as you did > with legend). b > > On Mon, Apr 12, 2010 at 12:49 PM, Assa Yeroslaviz <frymor@gmail.com> > wrote: > > Hi, > > > > I would like to know, if there is a possibility to plot the RNA > Degradation > > with different line types. > > I tried it this way: > > > > deg <- AffyRNAdeg(affybatch) > > plotAffyRNAdeg(deg ,col = 1:length(ArrayIndex_norm)) > > legend(-1.5, 75, > > as.character(sampleNames(eset)), > > lty = 1:length(ArrayIndex_norm), > > col = 1:length(ArrayIndex_norm), cex = 0.6) > > > > But I'm getting only solid lines in my graph, but different types of > lines > > in my legend. > > > > Is it possible to present several types of lines in my plot? > > > > THX > > > > Assa > > > > [[alternative HTML version deleted]] > > > > _______________________________________________ > > Bioconductor mailing list > > Bioconductor@stat.math.ethz.ch > > https://stat.ethz.ch/mailman/listinfo/bioconductor > > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > > > [[alternative HTML version deleted]]
ADD REPLY
0
Entering edit mode
hmmm... i see... let's wait a little bit then. b On Mon, Apr 12, 2010 at 1:16 PM, Assa Yeroslaviz <frymor at="" gmail.com=""> wrote: > nope that won't work: > > deg <- AffyRNAdeg(affybatch) > plotAffyRNAdeg(deg, lty = 1:length(ArrayIndex_norm),col = > 1:length(ArrayIndex_norm)) > legend(-1.5, 75, > ??? as.character(sampleNames(eset)), > ??? lty = 1:length(ArrayIndex_norm), > ??? col = 1:length(ArrayIndex_norm), cex = 0.6) > > All of my lines are still solid. > > On Mon, Apr 12, 2010 at 14:01, Benilton Carvalho > <beniltoncarvalho at="" gmail.com=""> wrote: >> >> you need to pass 'lty' also to the plotAffyRNAdeg function (as you did >> with legend). b >> >> On Mon, Apr 12, 2010 at 12:49 PM, Assa Yeroslaviz <frymor at="" gmail.com=""> >> wrote: >> > Hi, >> > >> > I would like to know, if there is a possibility to plot the RNA >> > Degradation >> > with different line types. >> > I tried it this way: >> > >> > deg <- AffyRNAdeg(affybatch) >> > plotAffyRNAdeg(deg ,col = 1:length(ArrayIndex_norm)) >> > legend(-1.5, 75, >> > ? ?as.character(sampleNames(eset)), >> > ? ?lty = 1:length(ArrayIndex_norm), >> > ? ?col = 1:length(ArrayIndex_norm), cex = 0.6) >> > >> > But I'm getting only solid lines in my graph, but different types of >> > lines >> > in my legend. >> > >> > Is it possible to present several types of lines in my plot? >> > >> > THX >> > >> > Assa >> > >> > ? ? ? ?[[alternative HTML version deleted]] >> > >> > _______________________________________________ >> > Bioconductor mailing list >> > Bioconductor at stat.math.ethz.ch >> > https://stat.ethz.ch/mailman/listinfo/bioconductor >> > Search the archives: >> > http://news.gmane.org/gmane.science.biology.informatics.conductor >> > > >
ADD REPLY
0
Entering edit mode
Hi, when looking at the "plotAffyRNAdeg" code, there is a 'for' loop at the end of the function. The 'col' argument is passed but the lty parameter is not. you can use fix(plotAffyRNAdeg) to temporarily modify the function. 1 - add a ltys = NULL argument to the main function (ie : plotAffyRNAdeg) 2 - add lty=ltys[i] in the call to lines *for (i in 1:dim(mns)[1]) lines(0:((dim(mns)[2] - 1)), mns[i, ], col = cols[i], lty=ltys[i])* then it will work. (I've just tested it) hope it helps. Tony On 12 April 2010 14:32, Benilton Carvalho <beniltoncarvalho@gmail.com>wrote: > hmmm... i see... let's wait a little bit then. b > > On Mon, Apr 12, 2010 at 1:16 PM, Assa Yeroslaviz <frymor@gmail.com> wrote: > > nope that won't work: > > > > deg <- AffyRNAdeg(affybatch) > > plotAffyRNAdeg(deg, lty = 1:length(ArrayIndex_norm),col = > > 1:length(ArrayIndex_norm)) > > legend(-1.5, 75, > > as.character(sampleNames(eset)), > > lty = 1:length(ArrayIndex_norm), > > col = 1:length(ArrayIndex_norm), cex = 0.6) > > > > All of my lines are still solid. > > > > On Mon, Apr 12, 2010 at 14:01, Benilton Carvalho > > <beniltoncarvalho@gmail.com> wrote: > >> > >> you need to pass 'lty' also to the plotAffyRNAdeg function (as you did > >> with legend). b > >> > >> On Mon, Apr 12, 2010 at 12:49 PM, Assa Yeroslaviz <frymor@gmail.com> > >> wrote: > >> > Hi, > >> > > >> > I would like to know, if there is a possibility to plot the RNA > >> > Degradation > >> > with different line types. > >> > I tried it this way: > >> > > >> > deg <- AffyRNAdeg(affybatch) > >> > plotAffyRNAdeg(deg ,col = 1:length(ArrayIndex_norm)) > >> > legend(-1.5, 75, > >> > as.character(sampleNames(eset)), > >> > lty = 1:length(ArrayIndex_norm), > >> > col = 1:length(ArrayIndex_norm), cex = 0.6) > >> > > >> > But I'm getting only solid lines in my graph, but different types of > >> > lines > >> > in my legend. > >> > > >> > Is it possible to present several types of lines in my plot? > >> > > >> > THX > >> > > >> > Assa > >> > > >> > [[alternative HTML version deleted]] > >> > > >> > _______________________________________________ > >> > Bioconductor mailing list > >> > Bioconductor@stat.math.ethz.ch > >> > https://stat.ethz.ch/mailman/listinfo/bioconductor > >> > Search the archives: > >> > http://news.gmane.org/gmane.science.biology.informatics.conductor > >> > > > > > > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD REPLY

Login before adding your answer.

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