title: Add styled annotation to a plot

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
title(
  main = NULL,
  sub = NULL,
  xlab = NULL,
  ylab = NULL,
  Rcss = "default",
  Rcssclass = NULL,
  ...
)

Arguments

main

plot title

sub

plot sub title

xlab, ylab

labels on axes

Rcss

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

Rcssclass

character, style class

...

Further parameters, see documentation of graphics::title

Examples

1
2
3
4
# add a title
plot(c(0, 1), c(0, 1), type="n", xlab="", ylab="")
title("This is the title")
title(sub="This is a bottom title")

Rcssplot documentation built on Jan. 8, 2020, 5:11 p.m.