title: Matrix 2X2 and Gridtable formatting&layout
body: <p>I am really new at this and I hope you could help me.</p>
  
  <p>I am trying to represent in a a4 papper (Pageorientation: Landscape) two plots against two tables. In this case I am using the same table (from a .dat file) to simplify the example.</p>
  
  <p>I started to read the file:</p>
  
  <pre><code>dat&lt;-read.table("d:\\Users\\...\\xxxxxxxx.dat",header=TRUE,sep="\t")
  </code></pre>
  
  <p>Now I want to divide my a4papper in 4 (2X2):</p>
  
  <pre><code>par(mfrow=c(2,2))
  </code></pre>
  
  <p>Now I define my vectos and represent them:</p>
  
  <pre><code>v&lt;- c(1,2,3,4,5,6,7,8,9,10)
  z&lt;- c(2,4,6,8,10,12,14,16,18,20)
  w&lt;- c(1,7,17,18,35,55,98,100)
  q&lt;- c(2,4,5,6,7,50,67,99)
  
  plot(v,z)
  plot(w,q)
  </code></pre>
  
  <p>Now I represent my data.frame in a table (X2) (with grid):</p>
  
  <pre><code>grid.table(dat, gpar.coretext = gpar(fontsize=6), gpar.coltext = gpar(fontsize=6), padding.h=unit(2, "mm"), padding.v=unit(2, "mm"), show.rownames = F)
  grid.table(dat, gpar.coretext = gpar(fontsize=6), gpar.coltext = gpar(fontsize=6), padding.h=unit(2, "mm"), padding.v=unit(2, "mm"), show.rownames = F)
  </code></pre>
  
  <p>RGui represents me: the two plots (in their respective positions in (1,1) and (1,2)) and the table centered.</p>
  
  <p>After doing some research I found out that grid.table uses grid graphics, a system that is mostly incompatible with base graphics. I think I should use Gridbase, lattice or ggplot2 and then combine it with gridarrangement (I don't understant why, beacause we already define that we want a 2X2 matrix so our table should adapt itself to his space). </p>
  
  <p>BUT:</p>
  
  <p>1) Looking into Gridbase and Lattice package I didn't found any function that allows me to represent my data.frame in a tabular/table with grid properly like grid.table().</p>
  
  <p>2) When I try to run my ggplot2:</p>
  
  <p>Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
    there is no package called ‘munsell’
  Error: package or namespace load failed for ‘ggplot2’</p>
  
  <p>If somebody could help me with the code I would be really apreciated</p>
  
  <p>Best regards</p>