I have a melted data frame with your standard id, variable and value columns. variable has 4 levels.
I want to use ggplot to plot a scatter plot using the values in value from each of the factors
to illustrate
data.frame(id= gl(4,1,labels=paste("id",1:4,sep="")), variable=gl(4,4,labels=LETTERS[1:4]),value=rnorm(16))
id variable value
1 id1 A -0.494270766
2 id2 A 0.189400188
3 id3 A -0.550961030
4 id4 A -1.046945450
5 id1 B -0.525552660
6 id2 B -0.293601677
7 id3 B 0.009664513
8 id4 B -0.214687215
9 id1 C 1.253551926
10 id2 C -1.241847326
11 id3 C -0.307036508
12 id4 C -0.228632605
13 id1 D -1.683798512
14 id2 D -0.419295267
15 id3 D -0.154469178
16 id4 D -0.763460558
I want to produce ggplot scatter plots for each pair of variable A vs B, A vs C, A vs D, B vs C, and so on, and then ass smoothers to them afterwards.
Cheers, Davy