fun_scope: Add scope

Description Usage Arguments Examples

View source: R/helpers.R

Description

Add a scope to a polar equation.

Usage

1
fun_scope(p, a, r0, gamma)

Arguments

p

Plot as initialised by funplot.

a, r0, gamma

Parameters for r in fun_add_polar.

Examples

1
2
3
4
5
6
7
fn <- "r0 * cos(theta - gamma) + sqrt(a^2 - r0^2 * (sin(theta - gamma))^2)"

funplot() %>%
  fun_add_polar(fn) %>%
  fun_scope(1, 1, 1) %>%
  fun_add_polar(fn) %>%
  fun_scope(1, 0, 0)

JohnCoene/funplot documentation built on March 19, 2018, 5:07 a.m.