labelplot: adds a letter and a title to a plot

Description Usage Arguments Examples

View source: R/labelplot.R

Description

This function adds a letter and a title (both are optional) to the top of a plot. Udeful for generating paper figures.

Usage

1
2
3
4
labelplot(letter = NULL, title = NULL, letteradj = -0.05, titleadj = 0,
  letterfont = 2, titlefont = 2, lettercex = 1.2, titlecex = 1,
  letterline = 0.5, titleline = 0.5, lettercol = "black",
  titlecol = "black")

Arguments

letter

A string, typically a letter or number (eg 'A', 'A)', '1', etc) to lable the plot with

title

A string for a plot title

letteradj

adj of letter. See par

titleadj

adj of title. See par

letterfont

font of letter. See par

titlefont

font of title See par

lettercex

cex of letter. See par

titlecex

cex of title See par

letterline

line of letter. See par

titleline

line of title See par

lettercol

color of letter. See par

titlecol

color of title See par

Examples

1
2
3
par(mar=c(3,3,3,3))
plot((1:10),col=maptocolors(vec=(1:10),colorRampPalette(c("blue","red"))),pch=19,cex=4)
labelplot("A)"," sample plot",lettercex=2,titlecex=2,titlecol="blue")

dphansti/Sushi documentation built on Oct. 30, 2021, 10:20 p.m.