bounds: Specify a domain over which a function is to be graphed

View source: R/domain.R

boundsR Documentation

Specify a domain over which a function is to be graphed

Description

domain() is used with slice_plot(), contour_plot(), or interactive_plot() to describe the plotting region. There is a standard syntax for domain() (see the first example) but there are also shortcuts. In the shorthand syntaxes, you can but don't have to specify the name of the input. If it's not specified, the plotting programs will try to do something sensible. But better to specify the names explicitly.

Usage

bounds(...)

domain(...)

Arguments

...

One or more expression of the form x=-5:5

Examples

## Not run: 
contour_plot(x / y ~ x + y, bounds(x=-5:5, y=1:4))
slice_plot(x^2 ~ x, bounds(x = 2.5:4.2)) # overrides colon operator
slice_plot(x^2 ~ x, bounds(x = c(2.5, 4.2)))
slice_plot(x^2 ~ x, bounds(x = 1 %pm% 0.5))

## End(Not run)


mosaicCalc documentation built on Sept. 15, 2022, 9:06 a.m.