dsmodels (version 1.1.0)

ylabel: Create a label on the y-axis

Description

Labels the y-axis

Usage

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

Run this code
# NOT RUN {
 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$!")
# }

Run the code above in your browser using DataCamp Workspace