R/PolarPlot.R

Defines functions PolarPlot

Documented in PolarPlot

PolarPlot <-
function(theta,r,degrees=FALSE,method=plot,geographical=FALSE,...)
  {
    if(degrees){theta=theta*pi/180}
    if(geographical){
      x = r * sin(theta)
      y = r * cos(theta)
    }else{
      x = r * cos(theta)
      y = r * sin(theta)
    }
    method(x,y,asp=1,...) 
  }

Try the TauP.R package in your browser

Any scripts or data that you put into this service are public.

TauP.R documentation built on May 2, 2019, 3:25 a.m.