I got a data in table form which look like this in R:
V1 V2
1 19 -1539
2 7 -1507
3 3 -1446
4 7 -1427
5 8 -1401
6 2 -422
7 22 4178
8 5 4277
9 10 4303
10 18 4431
....200 million more lines to go
I would like to plot a density plot for the value in the second column with respect to the label in the first column (i.e. each label has on density curve on a same graph). But I don't know how. Any suggestion?
OK I figure it out by myself
Should be able to do that. However there is two thing I need to make sure first in order to let it run:
The data I got wasn't set directly by
read.tables
in the way I want, so I have to do the following before using ggplot: