ylabel: Create a label on the y-axis

Description Usage Arguments See Also Examples

Description

Labels the y-axis

Usage

1
ylabel(label = "", line = 3, ...)

Arguments

label

The title of the axis, to be displayed on image. Text can be input in the form of pseudo-LaTeX code within quotes. See TeX for more details.

line

The distance from the axis the text will be displayed.

...

Extra parameters. These parameters are fed into mtext().

See Also

TeX

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 library(dsmodels)
 fun <- function(X,Y) {
 list(
   X/exp(Y),
   Y/exp(X)
 )
}
model <- dsmodel(fun, title = "Cool Function!")
model + dsrange(-2:3,-2:3, discretize = .09) +
 xlabel("$X$-Axis shows $\\alpha$!") +
 ylabel("$Y$-Axis shows $\\beta$!")

dsmodels documentation built on May 2, 2019, 8:35 a.m.