Re: [R] main plot title

2007-11-29 Thread Rolf Turner
On 30/11/2007, at 4:53 PM, marciarr wrote: > > Hello Rolf, > I am sorry for the incovenience. Well, here it goes again! > Let's say, I have a time series for the variable Chl. I wrote a > function > "pgram" that gives me the raw periodogram of the time series. So, this > function uses the value

Re: [R] main plot title

2007-11-29 Thread jim holtman
The answer is exactly the same: deparse(substitute(x)) go to the help page on 'deparse' On Nov 29, 2007 10:53 PM, marciarr <[EMAIL PROTECTED]> wrote: > > Hello Rolf, > I am sorry for the incovenience. Well, here it goes again! > Let's say, I have a time series for the variable Chl. I wrote a fu

Re: [R] main plot title

2007-11-29 Thread marciarr
Hello Rolf, I am sorry for the incovenience. Well, here it goes again! Let's say, I have a time series for the variable Chl. I wrote a function "pgram" that gives me the raw periodogram of the time series. So, this function uses the values of my time series in an algorithm that gives me new x and

Re: [R] main plot title

2007-11-29 Thread Rolf Turner
On 30/11/2007, at 3:53 PM, marciarr wrote: > > Hi Jim, > Thanks for your answer. > Unfortunately, because the x of my plot function is not actually > waht I need > on my graph's title, your advice does not work. Thanks anyway, > Marcia Jim answered the question you asked. If his advice didn't

Re: [R] main plot title

2007-11-29 Thread marciarr
Hi Jim, Thanks for your answer. Unfortunately, because the x of my plot function is not actually waht I need on my graph's title, your advice does not work. Thanks anyway, Marcia jholtman wrote: > > hopefully this will help you: > > mydata <- 1:10 > my.plot <- function(x) plot(x, main=paste('da

Re: [R] main plot title

2007-11-29 Thread jim holtman
hopefully this will help you: mydata <- 1:10 my.plot <- function(x) plot(x, main=paste('dataset =', deparse(substitute(x my.plot(mydata) On Nov 29, 2007 9:05 PM, marciarr <[EMAIL PROTECTED]> wrote: > > Dear R users, > I am having a problem with the main title of a plot. I have written a > fu

[R] main plot title

2007-11-29 Thread marciarr
Dear R users, I am having a problem with the main title of a plot. I have written a function returning a plot and I would like that the main title of this plot shows actually the name of the dataset I have used. So, for instance: if my dataset is called Chl, I would like that my plot to be entitle