title: Plot a 4 column data as dot plot in R
body: <p>I have a matrix in R like following</p>
  
  <pre><code>             H520KOR1 H520KOR2 H5202GyPHR1 H5202GyPHR2
  ILMN_1702609 5.916239 6.068699    4.910235    4.983025
  ILMN_1762631 5.490704 5.454779    4.573977    4.628981
  ILMN_2193175 5.730220 5.726268    6.222486    6.273563
  ILMN_3310451 4.955594 5.007212    4.423170    4.333526
  </code></pre>
  
  <p>I would like to plot it in the following way</p>
  
  <p><img src="https://i.stack.imgur.com/zn1oL.png" alt="please check plot here"></p>
  
  <p>I drew this picture in powerpoint. I have tried several ways but I am missing something. Any help would be greatly appreciated.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I took the first 10 rows from matrix and <code>dput()</code></p>
  
  <pre><code>&gt; dput(dat)
  structure(c(5.91623892229345, 5.49070424526676, 5.73021963287428, 
  4.9555939015656, 7.34200299329158, 4.49057379554289, 5.17555122512255, 
  5.6535332613054, 4.96143970172796, 4.4791600551366, 6.06869857120224, 
  5.45477925441301, 5.72626774546258, 5.00721151456707, 7.33658261931523, 
  4.36058760303988, 5.13085555870237, 5.77523892720755, 4.96844107374241, 
  4.41926414134707, 4.91023457951491, 4.57397741940793, 6.22248596066649, 
  4.42317017555403, 7.95776070495557, 5.13499805485839, 4.39694778946656, 
  4.80648887200906, 4.44717629932841, 5.25723605338541, 4.98302491117088, 
  4.62898140897605, 6.27356272326665, 4.33352596469113, 7.9391551372836, 
  5.13491596111887, 4.48130179704286, 4.90950199548828, 4.43674075246716, 
  5.13877204607323), .Dim = c(10L, 4L), .Dimnames = list(c("ILMN_1702609", 
  "ILMN_1762631", "ILMN_2193175", "ILMN_3310451", "ILMN_1808219", 
  "ILMN_1703280", "ILMN_1705466", "ILMN_2135232", "ILMN_1839994", 
  "ILMN_3234823"), c("H520KOR1", "H520KOR2", "H5202GyPHR1", "H5202GyPHR2"
  )))
  </code></pre>
  
  <p>Would it also be possible to plot the data of two replicates into one line, given a data.frame like  following</p>
  
  <pre><code>H520KOR1 control
  H520KOR2 control
  H5202GyPHR1 treated
  H5202GyPHR2 treated
  </code></pre>
  
  <p>which would change the plot to following (Instead of producing individual plots to each row, I feel that it would be better to include all row's information into one plot which would ease the interpretation further). I am just learning the possibilities with ggplot2. This helps in a greatway. Thank you.</p>
  
  <p><a href="https://i.stack.imgur.com/lqvO3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lqvO3.png" alt="enter image description here"></a></p>