title: plotting DCC results with R
body: <p>I have been running a dcc garch on R; the results is presented as matrix</p>
  
  <p><img src="https://i.stack.imgur.com/i6r2z.png" alt="enter image description here"></p>
  
  <p>I would like to extract the second column as a vector to plot, with date on the x-axis.
  For the moment, if I define 
  DCCrho = dccresults$DCC[,2]
  then head(DCCrho) yields this:</p>
  
  <p><a href="https://i.stack.imgur.com/i6r2z.png" rel="nofollow noreferrer"><a href="https://i.stack.imgur.com/i6r2z.png" rel="nofollow noreferrer">1</a></a> 0.9256281</p>
  
  <p><a href="https://i.stack.imgur.com/i6r2z.png" rel="nofollow noreferrer"><a href="https://i.stack.imgur.com/i6r2z.png" rel="nofollow noreferrer">2</a></a> 0.9256139</p>
  
  <p><a href="https://i.stack.imgur.com/i6r2z.png" rel="nofollow noreferrer"><a href="https://i.stack.imgur.com/i6r2z.png" rel="nofollow noreferrer">3</a></a> 0.9245794 
  ...</p>
  
  <p>any help to redefine this as a simple vector of numerical values?
  any other option to graph the results of dcc with date on the x-axis?
  Thanks a lot!</p>
  
  <p><img src="https://i.stack.imgur.com/Cg9o9.png" alt="str(dccresults"></p>
  
  <hr>
  
  <p>While trying this</p>
  
  <p>x &lt;- cbind(DCCrho, com_30[,2])</p>
  
  <p>head(x)</p>
  
  <p><img src="https://i.stack.imgur.com/hLwAb.png" alt="enter image description here"></p>
  
  <p>and this:
   matplot(DCCrho ~ x[,2], x, xaxt = "n", type='l')</p>
  
  <p>yields the following error message:</p>
  
  <p><em>"Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x),  : 
    invalid first argument"</em></p>