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
+
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
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
3 matches
Mail list logo