Re: [R] superimpose graphs

2011-04-16 Thread jim holtman
This will add the regression line to it: > x <- read.table(textConnection("id invest payout + 1 10 -1 + 1 33 33 + 1 20 -5 + 2 200 33 + 2 33-20 + 3 5 -5 +

Re: [R] superimpose graphs

2011-04-16 Thread jim holtman
Here is a start. This should create the plot: > x <- read.table(textConnection("id invest payout + 1 10 -1 + 1 33 33 + 1 20 -5 + 2 200 33 + 2 33-20 + 3 5

[R] superimpose graphs

2011-04-16 Thread 苏江东Su Jiangdong
Hi there, I have a data frame DF of over 600 people's short term trade data in time order. Below is the simplified structure of the data. id invest payout [1] 1 10 -1 [2] 1 33 33 [3] 1 20 -5 [4] 2 200