Rcssplot (version 1.0.0)

mtext: Write styled text into a plot margin

Description

This is a wrapper for R's mtext function. See R's documentation for graphics::mtext for further details.

Usage

mtext(text, Rcss = "default", Rcssclass = NULL, ...)

Arguments

text

characters to print on the plot

Rcss

style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle()

Rcssclass

character, style class

...

Further parameters, see documentation of graphics::mtext

Examples

Run this code
# NOT RUN {
# draw text into a margin
plot(c(0, 1), c(0, 1), type="n", xlab="", ylab="")
mtext(side=1, "bottom x-axis label", line=2.5)
mtext(side=2, "left y-axis label", line=2.5)
mtext(side=3, "top x-axis label")
mtext(side=4, "right y-axis label")

# }

Run the code above in your browser using DataLab