roof_fun: A mathematical function shaped like a roof

Description Usage Arguments Details Examples

View source: R/roof_fun.R

Description

Roof-shaped functions to illustrate the properties of partial derivatives.

Usage

1
roof_fun(x, y, type = c("plain", "dormer", "silo"))

Arguments

x

the x-coordinates at which to evaluate the function

y

the y-coordinates at which to evaluate the function

type

one of "plain", "dormer", or "silo".

Details

Note that when used in contour_plot() or interactive_plot(), you need only specify the symbolic expression roof_fun(x, y) ~ x + y. The plotting function will calculate and provide the needed numerical values for the coordinate. The domain for this function is x=c(-3,3) and y=c(-1,1).

Examples

1
2
3
4
## Not run: 
interactive_plot(roof_fun(x, y, type="dormer") ~ x & y,  domain(x=c(-3,3), y=c(-1,1)))

## End(Not run)

dtkaplan/mosaicUSAFA documentation built on Aug. 21, 2021, 10:37 p.m.