Learn R Programming

pracma (version 1.9.9)

ezpolar: Easy Polar Plot

Description

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

Usage

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

Arguments

fun
function to be plotted.
interv
left and right endpoint for the plot.

Value

Plots the function graph and invisibly returns NULL.

Details

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

See Also

ezplot

Examples

Run this code
## Not run: 
# fun <- function(x) 1 + cos(x)
# ezpolar(fun)
#   ## End(Not run)

Run the code above in your browser using DataLab