Rcssplot (version 1.0.0)

title: Add styled annotation to a plot

Description

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

Usage

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

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

# }

Run the code above in your browser using DataLab