mtext: Write styled text into a plot margin

View source: R/RcssWrappers.R

mtextR Documentation

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


# 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")


Rcssplot documentation built on April 4, 2025, 2:35 a.m.