R: How to plot a 3D array
<p>I want to plot a 3D array <strong>M</strong> where </p>

<pre><code>M &lt;- array(runif(64),dim=c(4,4,4))
</code></pre>

<p>A similar question is <a href="https://stackoverflow.com/questions/33329658/how-to-plot-a-3d-array-with-r">here</a> with comments that this can be done using a common 3D plot in R, but I could find no such function in R which can be used to plot multidimensional arrays (say, a 3D array as in the above example). Any suggestion how to do it? Thanks.</p>