In R, I would like multiple individual density plots, preferably using the ggplot2 package. The data frame has variable V1, which has multiple levels (ie see data example below).
V1 V2
1 5
1 4
1 2
2 3
2 8
2 6
3 5
3 9
How could I use qplot or ggplot to create density plots for V1=1 V1=2 and V1=3, in which V2 values are tied to the values of V1 (ie the density plot for V1=1 only accounts for V2=(5, 4, 2))?