title: How to create range x values with basic R
body: <p>I have just begun using R and have gone through multiple books and sources and they get more and more complex yet I still am unable to find a solution to what I think should be quite a basic process.</p>
  
  <p>I have data with 3 columns as shown: (I am really simplifying everything to try and get a really clear answer which can applied to multiple situations)</p>
  
  <pre><code>min     max     value
  1       5         23
  8       15        9
  33      35        30
  </code></pre>
  
  <p>I would like to plot this data on a graph.
  by this data I intend that every value between 1 and 5 for example on the x axis is equal to 23 on the y axis.</p>
  
  <p>I have tried several things including assigning each column to vectors a , b , and c respectively.
  generating the correct number of values with:</p>
  
  <pre><code>y &lt;- rep( c, (a-b+1))
  </code></pre>
  
  <p>which works as expected</p>
  
  <p>then the problem occurs with getting the appropriate x values, I tried:</p>
  
  <pre><code>x &lt;- (a:b)
  </code></pre>
  
  <p>but because of the way R functions it only applies to the first variables.
  Now I can make this work by manually typing everything in like:</p>
  
  <pre><code>x &lt;- c(1:5, 8:15, 33:35)
  </code></pre>
  
  <p>but I really need an automated way to do this because I am working with huge datasets of this structure.</p>
  
  <p>I have seen some other people seem to have similar issues, however the underlying principle always seem to be convoluted with vast datasets and entire codes in questions so I have been unable to get to a good solution to this problem.
  If anyone with a little more experience could clear up this issue I would be hugely grateful!</p>