title: alignment of multiple graph types in R (preferably in ggplot2 or lattice)
body: <p>I want to create the following type of graph with line, bar and heatmap with a dataset like this:</p>
  
  <pre><code>pos &lt;- 1:40 # X axis 
  barvar &lt;- rnorm (40, 5, 2) # y axis for barplot 
  linevar &lt;- rnorm (40, 0, 0.5) # yvar for line plot 
  heatmapvar &lt;- rep(1:5, 8) # yvar plot for heatmap (color coded) plot 
  myd &lt;- data.frame (pos, barvar, linevar, heatmapvar) 
  
  # labeling positions 
  label &lt;- c("A", "B", "C", "D", "E", "F", "G", "H", "I")
  position &lt;- c(1, 5, 10, 15, 20, 25, 30, 35, 40)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/i6JCo.jpg" alt="enter image description here"></p>