Re: [R] Plot rows of CSV

2011-05-30 Thread rmje
Hi, this works: apply(mtcars[c("Mazda RX4", "Merc 450SLC", "Maserati Bora"), ], 1, plot) How do you add labels and additional edit in such a plot? For instance I want mpg cyl disp hp dratwt qsec vs am gear carb to be plottet below the X-axis -- View this message in context: http://r.

Re: [R] Plot rows of CSV

2011-05-29 Thread Jim Holtman
Because your header contains strings that are not legal names. Check out the parameter check.name (cannot tell for sure since R is not available on the iPad). Sent from my iPad On May 29, 2011, at 5:17, rmje wrote: > http://r.789695.n4.nabble.com/file/n3558595/help_snap.jpg > > Why do R re

Re: [R] Plot rows of CSV

2011-05-29 Thread rmje
http://r.789695.n4.nabble.com/file/n3558595/help_snap.jpg Why do R rename my rows and columns when loading it like in the image above? -- View this message in context: http://r.789695.n4.nabble.com/Plot-rows-of-CSV-tp3555898p3558595.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Plot rows of CSV

2011-05-27 Thread Joshua Wiley
Hi, This is not fancy or especially elegant, but ## so you can see each plot at a time before moving on par(ask = TRUE) ## apply() the function plot() to each row of the ## rows of mtcars you extracted by name apply(mtcars[c("Mazda RX4", "Merc 450SLC", "Maserati Bora"), ], 1, plot) I use as

[R] Plot rows of CSV

2011-05-27 Thread rmje
http://r.789695.n4.nabble.com/file/n3555898/example.jpg Hi, I have a CSV-file (see image) that I would like to plot. I want to make a plot-function where I only plot one row at the time. I want to define which row to plot in the function based on the row-names (non-numeric) in column 1 in the C