[R] main plot title

jim holtman jholtman at gmail.com
Fri Nov 30 05:11:11 CET 2007


The answer is exactly the same:   deparse(substitute(x))

go to the help page on 'deparse'

On Nov 29, 2007 10:53 PM, marciarr <marcia.rocha at gmail.com> 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 values of my time series in an algorithm that gives me new
> x and y values. And those are the coordinates that I am actually using on
> the final plot function inside "pgram" (Chl is actually not an argument of
> my plot function...). I am interested that the title of the original dataset
> I used appears on my plot. Because I will use this function several time
> series (let's say Chl and A, with different data sets), I would like to
> obtain each time on the title of my plot for pgram(x), "Raw periodogram of
> x" or for pgram(A), "Raw periodogram of A".
> Hope it is clearer now,
> Cheers,
> Marcia Rocha
>
>
> Rolf Turner-3 wrote:
> >
> >
> > 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 work, then
> > you
> > asked the wrong question.  It pays to do a little thinking about a
> > problem
> > before asking the list for help.
> >
> > What are you expecting anyway?  That R should be able to read your mind?
> >
> >               cheers,
> >
> >                       Rolf Turner
> >
> > ######################################################################
> > Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
> >
> > ______________________________________________
> > 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.
> >
> >
>
> --
> View this message in context: http://www.nabble.com/main-plot-title-tf4901182.html#a14040224
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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