I have the same issue and got fixed after install XQuartz from https://www.xquartz.org. After installation, restart your Mac. And then
install.packages("tcltk") install.packages("plot3D")
install.packages("tcltk")
install.packages("plot3D")