[R] variable syntax problem
jim holtman
jholtman at gmail.com
Thu Feb 21 17:03:48 CET 2008
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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list