[R] how to create 3d graph w/ spherical coordinates?

Duncan Murdoch murdoch at stats.uwo.ca
Fri Jul 10 12:41:49 CEST 2009


Buzz Buzzerr wrote:
> Are there any R-routines/packages that will do 3d graphics for data in spherical coordinates?  I have had no luck with Google searches.  Thanks in advance for your reply.   Buz
>
>   
I don't know of one, but you can certainly write a function to translate 
your version of spherical coordinates (there are several different 
conventions) into Euclidean coordinates, then plot those using the 
functions in rgl.  You'll have to work out your own scheme for drawing axes.

Duncan Murdoch




More information about the R-help mailing list