[R] About multiple panels with limited space in-between

lily li chocold12 at gmail.com
Tue Oct 10 22:41:23 CEST 2017


Hi R users,

I have a question about plotting. The following two datasets are an
example. What I have in mind is like the attached figure, but just have two
rows, top row is for DF1, bottom row is for DF2. The top and bottom rows,
have x-axis as var1, var2, var3, etc, while the y-axis represents A. For
each row, only the leftmost panel has y-axis ticks and label. For the two
rows, only the bottom row has x-axis ticks and label. I am not very clear
about the coding. Thanks if you could give me any suggestions.


DF1: Year 2000
A     var1   var2   var3   var4   var5
1.2   0.8     0.9     1.1     1.2     12
1.8   0.9     1.2     1.0     2.1     15
1.5   0.7     1.1     0.9     2.2     16
1.6   0.9     1.0     0.7     2.5     18
...

DF2: Year 2001
A     var1   var2   var3   var4   var5
1.1   0.85     0.9     1.1     1.2     22
1.4   0.99     1.2     1.0     2.1     25
0.8   0.74     1.1     0.9     2.2     26
0.6   0.92     1.0     0.7     2.5     28
...

	[[alternative HTML version deleted]]



More information about the R-help mailing list