title: Plot a table in R in a cell format with a background color
body: <p>I have a table with 2 columns. First column is a test name and second column is success/failure of the test. I want to plot this in such a way that the plot area is split into grids of squares/rectangles and each test name belongs to one square/rectangle. The background color should be green if the test is a success and red otherwise. Basically a treemap but with all the rectangles of same size.</p>
  
  <pre><code>    ret = data.frame("x" = c("test1","test2","test3","test4"), "y" = c("success","success","failure","success")) 
  </code></pre>
  
  <p>I want this to be plotted such that 4 cells are formed with the test name displayed in the center. The background color for test3 block should be red and green for the rest. I tried using treemap package and portfolio package's map.market function but both of them are treemap functions and even after giving the size parameter same for all, they still give me different sizes for each cell.</p>
  
  <p>Any help would be greatly appreciated.</p>