Re: [R] reference text variables as column name to plot [SOLVED]

2010-12-01 Thread Graves, Gregory
Gregory Cc: r-help@r-project.org Subject: Re: [R] reference text variables as column name to plot On Nov 30, 2010, at 11:40 AM, Graves, Gregory wrote: > Having given myself carpal tunnel looking for answer to this ... > > > > I have a dataset Named what? > each column of which has

Re: [R] reference text variables as column name to plot

2010-11-30 Thread Bert Gunter
May I suggest that "DYDD" -- Do Your Due Dilgence -- might be an appropriate reply to this sort of query. A purposefully less crude and more polite version of "RTFM." -- Bert On Tue, Nov 30, 2010 at 8:51 AM, jim holtman wrote: > Where is the "column"?  Is it in a matrix/dataframe?  Why are you >

Re: [R] reference text variables as column name to plot

2010-11-30 Thread jim holtman
Where is the "column"? Is it in a matrix/dataframe? Why are you trying to plot 12 points against 'z' which has 24 values? You can reference the column by: plot(yourDF[, s]) where 's' is what you created as the column name. Need to refer to indexing in the Intro to R. On Tue, Nov 30, 2010 at

Re: [R] reference text variables as column name to plot

2010-11-30 Thread David Winsemius
On Nov 30, 2010, at 11:40 AM, Graves, Gregory wrote: Having given myself carpal tunnel looking for answer to this ... I have a dataset Named what? each column of which has 12 rows in it. I created a variable 'z' as follows: z=1:24 s Why did you put twice as many elements in z

[R] reference text variables as column name to plot

2010-11-30 Thread Graves, Gregory
Having given myself carpal tunnel looking for answer to this ... I have a dataset each column of which has 12 rows in it. I created a variable 'z' as follows: z=1:24 Since I have a large number of these plots to make, and they are a bit complex, I want to want to reference the column