title: How to graph columns of a matrix against the rows in R?
body: <p>so I am having some issues about how to plot this matrix. It's basically a matrix where the 1st column is the number of years and then the row with that column are random variables that have been simulated.</p>
  <p>How would I be able to plot a graph where the x axis is the year number (column 1) and then we plot the rows against it? Eg for 1 on the x-axis I will have 5 points for it, 0.33432948, 0.06990206 etc. I will need to look into changing the y-axis limits since there are so many points and I want a spread out graph but I think I can worry about that later.</p>
  <p>I have looked into ggplot2 and tidyverse but haven't had any luck finding anything useful so far. Thanks a bunch!</p>
  <pre><code>     [,1]       [,2]       [,3]       [,4]       [,5]       [,6]
   [1,]    1 0.33432948 0.06990206 0.05479009 0.03561347 0.09225090
   [2,]    2 0.12517444 0.03190385 0.11468735 0.03905080 0.08880641
   [3,]    3 0.13304605 0.03058939 0.17782558 0.07074068 0.19275310
   [4,]    4 0.10048548 0.03858150 0.22797194 0.06269640 0.20969944
   [5,]    5 0.10934330 0.10028905 0.01210302 0.01143484 0.12816420
   [6,]    6 0.03646873 0.13893758 0.05368435 0.21892630 0.24976405
   [7,]    7 0.08412910 0.11280857 0.04691009 0.25731222 0.03220878
   [8,]    8 0.05843632 0.07054884 0.21108606         NA         NA
   [9,]    9 0.03934863 0.09538574 0.07085261 0.20016386 0.11080113
  [10,]   10 0.21394149 0.05896028 0.05786250 0.09090584 0.06395972
  </code></pre>