From: jim holtman <jholtman_at_gmail.com>

Date: Thu, 21 Feb 2008 12:12:24 -0500

> now i would like to call a varaible like an another variable value...

> example:

*> for (i in 10:length(tissue)) {
*

> PSA_SI_tissues[i] = splicing.index(rma.affy, "ENSG00000142515",

*> "tissue", c("prostate",tissues[i]), vector.out=FALSE)
*

*> }
*

> with paste it does not work

*> for (i in 10:length(tissue)) {
*

> paste("PSA_SI_",tissues[i]) = splicing.index(rma.affy,

*> "ENSG00000142515", "tissue", c("prostate",tissues[i]), vector.out=FALSE)
*

*> }
*

> any suggestions?

> thanks

*> paul
*

*> R-help_at_r-project.org mailing list
*

*> https://stat.ethz.ch/mailman/listinfo/r-help
*

> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

> and provide commented, minimal, self-contained, reproducible code.

>

Date: Thu, 21 Feb 2008 12:12:24 -0500

Also consider using a 'list' to store the results.

On 2/21/08, Paul Hammer <paul.hammer_at_tfh-wildau.de> wrote:

> Paul Hammer schrieb:

*> > jim holtman schrieb:
**> >> Exactly what do you mean by additional text? Have you tried "paste"?
**> >>
**> >> On 2/21/08, Paul Hammer <paul.hammer_at_tfh-wildau.de> wrote:
**> >>
**> >>> dear members,
**> >>>
**> >>> i would like to write a variable in a plot title (main="") but i don't
**> >>> know the right syntax:(...i tried a lot of different ways without success.
**> >>>
**> >>> here my example:
**> >>>
**> >>> y=30
**> >>> z=33
**> >>> for (i in 10:length(tissue)) {
**> >>> png(filename = tissues[i], width = 1024, height = 768, pointsize = 12,
**> >>> bg = "white")
**> >>> gene.graph("ENSG00000115252", rma.affy, gps=list(1:3, y:z),
**> >>> type="mean-int", gp.col=c("red", "blue"), by.order=TRUE,
**> >>> scale.to.gene=FALSE, use.symbol=TRUE, use.mt=FALSE, *main="PDE1A
**> >>> (red=prostate, blue=tissues[i])"*, ylab="intensity / probeset",
**> >>> exon.y=1, exon.height=1, exon.bg.col="#c3c3c3",
**> >>> exon.bg.border.col="black", show.introns=TRUE)
**> >>> y=y-3
**> >>> z=z-3
**> >>> dev.off() }
**> >>>
**> >>> when i write main=tissues[i] the value is written right. but i would
**> >>> like to have an additional text...
**> >>>
**> >>> thanks
**> >>> paul
**> >>>
**> >>> [[alternative HTML version deleted]]
**> >>>
**> >>> ______________________________________________
**> >>> R-help_at_r-project.org mailing list
**> >>> https://stat.ethz.ch/mailman/listinfo/r-help
**> >>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
**> >>> and provide commented, minimal, self-contained, reproducible code.
**> >>>
**> >>>
**> >>
**> >>
**> >>
**> > thank you jim,
**> >
**> > that was what i meant :)
*

>

> now i would like to call a varaible like an another variable value...

>

> example:

>

> PSA_SI_tissues[i] = splicing.index(rma.affy, "ENSG00000142515",

>

> with paste it does not work

>

> paste("PSA_SI_",tissues[i]) = splicing.index(rma.affy,

>

> any suggestions?

>

> thanks

> >

> [[alternative HTML version deleted]]

>

> ______________________________________________

> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

> and provide commented, minimal, self-contained, reproducible code.

>

-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.Received on Thu 21 Feb 2008 - 17:24:12 GMT

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.2.0, at Thu 21 Feb 2008 - 20:30:16 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*