title: How to plot 3D scatter diagram using ggplot?
body: <p>I tried to use the <a href="https://plotly-r.com/" rel="noreferrer">plotly</a> package, but it is not working in my case at all. The <a href="https://ggplot2.tidyverse.org/" rel="noreferrer">ggplot</a> package is working for 2D plots but it is giving an error when adding one more axis. How to solve this issue?</p>
  
  <pre class="lang-r prettyprint-override"><code>ggplot(data,aes(x=D1,y=D2,z=D3,color=Sample)) +
    geom_point()
  </code></pre>
  
  <p>How to add one more axis and get the 3D plot in this?</p>