title: Boxplots for groups?
body: <p>I have a dataset (test) as given below:</p>
  
  <pre><code>Type    Met1    Met2    Met3    Met4
  TypeA   65  43  97  77
  TypeA   46  25  76  77
  TypeA   44  23  55  46
  TypeA   46  44  55  77
  TypeA   33  22  55  54
  TypeB   66  8   66  47
  TypeB   55  76  66  65
  TypeB   55  77  88  46
  TypeB   36  67  55  44
  TypeB   67  55  76  65
  </code></pre>
  
  <p>I have checked a lot of links on box plots, but I still have not succeeded for the type of box plot I want. I wish to have a boxplot with my X-axis having type A (yellow, orange) for all the Mets (Met1, Met2, Met3, Met4).  In essence, I want something like the following (taken from <a href="http://sphaerula.com/legacy/R/boxplotTwoWay.html" rel="noreferrer">here</a>):  </p>
  
  <p><a href="https://i.stack.imgur.com/Dovu8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Dovu8.png" alt="enter image description here"></a></p>
  
  <p>I am trying somethings like,</p>
  
  <pre><code>boxplot(formula = len ~ Type , data = test, subset == "TypeA")
  boxplot(formula = len ~ Type , data = test, subset == "TypeA", add=TRUE)
  Legend(legend = c( "typeA", "typeB" ), fill = c( "yellow", "orange" ) )
  </code></pre>
  
  <p>But I am not able to work it out with any of it. Can anyone help me know how do I make such box plots on my test data in the corrected way? </p>