I am using R to make a plot of my data.
I have two files:
1.
V1 V2
12.33 124.23
13.45 196.45
12.34 124.34
12.34 124.34
2.
V1 V2
2 345.56
1 0.123
2 34.34
3 234.45
I want to make separate graphs of the first column of the first file based on the first column of the second file. That is in lattice library:
y=V1 of the first file
x=V2 of the second file
z=V1 of the second file
Using this code:
xyplot(y~x | z, pch=".")
I have obtained the graphs I wanted but now, my problem is that I want to write the number of each graph based on z, that is for example on top of graph one, I want to have n=1.
How I could do that?
Thank you in advance.