Easy function plot w/o the need to define x, y coordinates.

ezpolar(fun, interv = c(0, 2*pi))

Arguments

fun

function to be plotted.

interv

left and right endpoint for the plot.

Details

Calculates the x, y coordinates of points to be plotted and calls the polar function.

Value

Plots the function graph and invisibly returns NULL.

Note

Mimick the Matlab function of the same name.

See also

Examples

if (FALSE) { # \dontrun{
fun <- function(x) 1 + cos(x)
ezpolar(fun)
  } # }