I've installed the newest version of the rgl package by means of advice from the link below: How do I install the latest version of rgl? Then i tried to reproduce the code example of the answer from the post: Adding a legend to an rgl 3d plot Everything is working Ok except the command:
legend3d("topright", legend = paste('Type', c('A', 'B', 'C')), pch = 16, col = rainbow(3), cex=1, inset=c(0.02))
After executing the above command i have the warning message and no legend on the 3dplot in fact:
Warning messages:
1: In rgl.material(color = color, back = back, ...) :
RGL: Pixmap load: file format unsupported
2: In rgl.material(color = color, back = back, ...) :
RGL: Pixmap load: failed
How i can fix it? Thank you in advance.