Re: [R] variable syntax problem

From: jim holtman <jholtman_at_gmail.com>
Date: Thu, 21 Feb 2008 11:03:48 -0500

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?

______________________________________________
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 - 16:11:19 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 - 17: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.

list of date sections of archive