Learn R Programming

cowplot (version 0.4.0)

draw_plot_label: Draw plot label

Description

This function adds a plot label to the upper left corner of a graph. It takes all the same parameters as draw_text(), but has defaults that make it convenient to label graphs.

Usage

draw_plot_label(label, x = 0, y = 1, hjust = -0.5, vjust = 1.5,
  size = 16, fontface = "bold", ...)

Arguments

label
String to be drawn as the label.
x
The x position of the label.
y
The y position of the label.
hjust
Horizontal adjustment.
vjust
Vertical adjustment.
size
Font size of the label to be drawn.
fontface
Font face of the label to be drawn.
...
Other arguments to be handed to draw_text().