Paul Hammer schrieb:
> jim holtman schrieb:
>> Exactly what do you mean by additional text?  Have you tried "paste"?
>>
>> On 2/21/08, Paul Hammer <[EMAIL PROTECTED]> 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@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:

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


        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to