labelplot {Sushi} | R Documentation |
This function adds a letter and a title (both are optional) to the top of a plot. Udeful for generating paper figures.
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")
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 |
titleadj |
adj of title. See |
letterfont |
font of letter. See |
titlefont |
font of title See |
lettercex |
cex of letter. See |
titlecex |
cex of title See |
letterline |
line of letter. See |
titleline |
line of title See |
lettercol |
color of letter. See |
titlecol |
color of title See |
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")