title: Adding points to persp-methods plots
body: <p><a href="https://i.stack.imgur.com/3wTVC.gif" rel="nofollow noreferrer">Data </a>I am working with R on Copula. I have plotted the copula, but I want to add my points to it like the image you see here. How I can do that?  My data include the x and y, I turned them to u and v. I need my point get added to the plot. But it did not show anything. When I add the points I receive this error "Error in cbind(x, y, z, 1) %*% pmat : requires numeric/complex matrix/vector arguments"</p>
  
  <pre><code>library(copula)
  library(lmomco)
  library(VineCopula)
  
  data &lt;- read.csv('D:/test2.csv',header=F)
  
  x &lt;- data[,1]
  y &lt;- data[,2]
  
  u &lt;- pobs(x)
  v &lt;- pobs (y)
  
  m &lt;- cbind(u,v)
  scopula &lt;- r270GumbelCopula(-3)
  fit1 &lt;- fitCopula(scopula,m,method='mpl')
  res &lt;- persp(scopula, pCopula, zlim = c(0,1))
  points(trans3d(m[,1], m[,2], pcop1, pmat = res), col = 2, pch = 16)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0RYZP.gif" rel="nofollow noreferrer">example of Map I want to create</a></p>
  
  <p><a href="https://i.stack.imgur.com/6K2zH.png" rel="nofollow noreferrer">What I can create so far</a></p>