Re: [R] printfing, pasting,writing variables

From: Jorge Ivan Velez <jorgeivanvelez_at_gmail.com>
Date: Wed, 18 Jun 2008 23:39:07 -0400

Dear Felipe,

Is something like this what you are looking for?

z=1
plot(rnorm(100),main=paste("The variable is ",z,sep=""))

z=5
plot(rnorm(100),main=paste("The variable is ",z,sep=""))

HTH, Jorge

On Wed, Jun 18, 2008 at 11:30 PM, Felipe <manoelsantos666_at_gmail.com> wrote:

> how can i write in a txt or put in a title of a plot or boxplot or
> something
> a variable
> like let's say z=1
> and i want my title or a write like this
> "the variable is 1"
> if z change the 1 above change
> understand??
> do anyone know??
>
> tks
>
> [[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.
>

        [[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. Received on Thu 19 Jun 2008 - 03:42:48 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 19 Jun 2008 - 04:31:26 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