title: R plotting rows of a list
body: <p>Final edit: Result using matplot()
  I'll see to it that I work with ~3 digit values to get a more distinctive result, but basically it's what I wanted
   <img src="https://i.stack.imgur.com/PjQry.png" alt="enter image description here"></p>
  
  <p><strong>Original Question</strong></p>
  
  <hr>
  
  <p>I want to create a graph that should look like the attached image <img src="https://i.stack.imgur.com/7OjKv.png" alt="graph should look like this"></p>
  
  <p>What I got are the values for each line (representing a different topic) for both the y and x axis. </p>
  
  <p>Close to an example on R plotting I found, I tried the following: </p>
  
  <pre><code>arts=c(pt[1,])
  g_range &lt;- range(0, arts)
  plot(arts, type="o", col="blue", ylim=g_range,axes=FALSE, ann=FALSE)
  axis(1, at=1:23, lab=c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23))
  box()
  </code></pre>
  
  <p>This results in the error </p>
  
  <blockquote>
    <p>Error in xy.coords(x, y, xlabel, ylabel, log) : 
      'x' is a list, but does not have components 'x' and 'y'</p>
  </blockquote>
  
  <p>So apparently arts is not the right parameter for plot here, right?
  Sidenote: the values in the arts vector are ordered to fit the 0-23 scale</p>
  
  <p>In addition: this is what the head of pt looks like <img src="https://i.stack.imgur.com/PWVvB.png" alt="enter image description here"></p>
  
  <p>Edit: on request, here the output of dput(head(pt))</p>
  
  <pre><code>    structure(list(`0` = c(2, 1, 0, 0, 0, 0), `1` = c(1, 0, 0, 0, 
  0, 0), `2` = c(1, 0, 0, 0, 0, 0), `3` = c(0, 0, 0, 0, 0, 0), 
      `4` = c(0, 0, 0, 0, 0, 0), `5` = c(0, 0, 0, 0, 0, 0), `6` = c(1, 
      0, 0, 0, 0, 0), `7` = c(1, 0, 0, 0, 0, 0), `8` = c(1, 0, 
      0, 0, 0, 0), `9` = c(2, 0, 0, 0, 0, 0), `10` = c(2, 1, 0, 
      0, 0, 0), `11` = c(2, 1, 0, 0, 0, 0), `12` = c(2, 1, 0, 0, 
      0, 0), `13` = c(2, 1, 0, 0, 0, 0), `14` = c(2, 1, 0, 0, 0, 
      0), `15` = c(3, 1, 0, 0, 0, 0), `16` = c(3, 1, 0, 0, 0, 0
      ), `17` = c(3, 1, 0, 0, 0, 0), `18` = c(3, 1, 1, 1, 0, 0), 
      `19` = c(3, 1, 1, 1, 0, 0), `20` = c(3, 1, 1, 1, 0, 0), `21` = c(3, 
      1, 1, 1, 0, 0), `22` = c(3, 1, 1, 0, 0, 0), `23` = c(2, 1, 
      0, 0, 0, 0)), .Names = c("0", "1", "2", "3", "4", "5", "6", 
  "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", 
  "18", "19", "20", "21", "22", "23"), row.names = c(NA, 6L), class = "data.frame")
  </code></pre>