[R] Multiple line Graphs

2012-03-30 Thread TwistedSkies
Hi Guys, I am trying to create 20 indivudual line graphs that will be updated on a weekly bases. I have managed to read in my data from SQL and defined my loop. I am having difficulty in plotting the data and I think it may have something to do with the way my data has been read in and maybe I

Re: [R] Multiple line Graphs

2012-03-30 Thread jim holtman
If you read it in as a dataframe, then you can use 'split' to create the subsets by PolyNam and then use 'lapply' to the result of 'split' to plot it: lapply(split(yourDF, yourDF$PolyNam), function(.poly){ plot(.poly$Date, .poly$Total) }) On Fri, Mar 30, 2012 at 5:16 AM, TwistedSkies

[R] Multiple line graphs

2011-07-07 Thread lt2
HI everyone, I'm just starting to get into graphing with R and I need to generate one graph that illustrates the pattern of gene expression for various patients. My data is in .csv format and is as follows and i'm showing below a portion of the data. Pt Coordinate Log2Ratio 1

Re: [R] Multiple line graphs

2011-07-07 Thread Joshua Wiley
Hi lt2, I would use the ggplot2 or lattice package. It strikes me as more effort to do in traditional graphics. Anyway, here are some examples. Lattice is a very nice package, but I am not quite as familiar with it, so my examples for it are not representative of its full power. Cheers, Josh

Re: [R] Multiple line graphs

2011-07-07 Thread Trevino, Lisa
Thank you! LT On 7/7/11 3:46 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi lt2, I would use the ggplot2 or lattice package. It strikes me as more effort to do in traditional graphics. Anyway, here are some examples. Lattice is a very nice package, but I am not quite as familiar