Hi everyone,
I made a 3D plot using RGL using the plot3d function. The data is from Diffusion map coordinates of a single cell RNASeq dataset. I tried using rgl.postscript() function to save the plot as a pdf. But there are way too many points and after rendering for nearly an hour, my R studio crashes. Is there an alternate method to save 3d plots from rgl as a pdf ?
Following is the code I used
plot3d(data2[1:3],type='s',box=FALSE,col=data2$color,radius = .001)
rgl.postscript("plot.pdf",fmt="pdf")
And here are a few lines from my data
DM_1 DM_2 DM_3 var_cluster color
AAACCTGCACTCTGTC-E15.5 -0.001392666 0.006624446 0.001566648 5 #CBD588
AAACCTGGTCTTCTCG-E15.5 -0.001593669 0.008024144 -0.003262486 2 #74D944
AAACCTGGTTCGCTAA-E15.5 -0.001607172 0.008415930 -0.005092944 2 #74D944
AAACGGGAGTGGTAGC-E15.5 -0.001114521 0.005403248 0.007797941 2 #74D944
AAACGGGCAGCTGCTG-E15.5 -0.001559912 0.008073420 -0.004305803 4 #C0717C
AAACGGGCATGAGCGA-E15.5 -0.001534235 0.007919188 -0.003495660 2 #74D944
Thanks