Re: [R] Plotting a graph for every Level of a Factor

2009-01-07 Thread hadley wickham
On Wed, Jan 7, 2009 at 5:10 PM, jimdare wrote: > > Hello, > > Using the dataset below, is there a way to generate a bar/line plot for the > TACC/Catch of every lvl of stock? i.e. OR1,OR3,OR5. The picture at the > bottom of this post is an example of the bar/line plot for OR1 which was > generate

Re: [R] Plotting a graph for every Level of a Factor

2009-01-07 Thread jimdare
Thanks so much, I have been trying to figure that one out all morning! jholtman wrote: > > Is this what you want: > >> x # input data >Year Species Stock TACC Catch > 1 2001 ORH OR1 5000 4687 > 2 2002 ORH OR1 6000 3215 > 3 2003 ORH OR1 7000 6782 > 4 2004 O

Re: [R] Plotting a graph for every Level of a Factor

2009-01-07 Thread jim holtman
Is this what you want: > x # input data Year Species Stock TACC Catch 1 2001 ORH OR1 5000 4687 2 2002 ORH OR1 6000 3215 3 2003 ORH OR1 7000 6782 4 2004 ORH OR1 9000 1 5 2005 ORH OR1 9000 12000 6 2001 ORH OR3 2 7892 7 2002 ORH O

[R] Plotting a graph for every Level of a Factor

2009-01-07 Thread jimdare
Hello, Using the dataset below, is there a way to generate a bar/line plot for the TACC/Catch of every lvl of stock? i.e. OR1,OR3,OR5. The picture at the bottom of this post is an example of the bar/line plot for OR1 which was generated when OR1 was the only stock in the table. This was create