get_ellipse: Generating data points on an ellipse.

Description Usage Arguments Value See Also

Description

The function creates a dataframe with the points required to plot an ellipse.

Usage

1
get_ellipse(x = 0, y = 0, a = 1, b = 1, angle = pi/3, n = 300)

Arguments

x, y

Coordinates for the centre of the ellipse. Default are 0, 0.

a, b

Major and minor semi-axis of the ellipse. Default are 1, 1.

angle

Angle between the x-axis and the major semi-axis. Default is pi/3.

n

Number of data points in the dataset. Default is 300.

Value

The function returns a dataset of x, y coordinates required to draw an ellipse with ggplot2. This function is used internally by the function isoplot.pm10.

See Also

isoplot_pm10


andreabz/pbratios documentation built on May 12, 2019, 2:42 a.m.