Post text (in an xbox).
post
plots 1 or more text strings (provided as a character vector labels
)
to an (existing or new) xbox
.
post( labels, x = 0.03, y = 0.55, y_layout = "even", col = "white", col_bg = Seeblau, cex = 1, font = 1, new_plot = "none" )
labels |
A character vector specifying the text labels to be plotted. |
x |
A numeric vector of x-coordinates at which the
text labels in |
y |
A numeric vector of y-coordinates at which the
text labels in |
y_layout |
A numeric value or vector for the vertical
spacing of labels in |
col |
The color(s) of the text label(s).
Default: |
col_bg |
The background color(s) of the |
cex |
Numeric character expansion factor(s),
multiplied by |
font |
The font type(s) to be used.
Default: |
new_plot |
Should a new plot be generated?
Set to |
The positions of the text elements in labels
can be specified by
providing their coordinates (as x
and y
arguments) or
by providing an initial position and an y_layout
(see below).
Text formatting parameters (like col
, col_bg
, cex
, font
)
are recycled to match length(labels)
.
post
uses the base graphics system graphics::
.
xbox
to create a new xbox (without text).
post(labels = "Post this line with default settings.", new_plot = "xbox") # Create a new xbox: post(labels = "This is a test.", new_plot = "xbox", cex = 1.2, font = 2, col_bg = pal_seeblau[[5]]) # Add text to an existing xbox: post(labels = c("More text follows here,", "yet another line here,", "and even more here."), y = .4, y_layout = .04, new_plot = "none")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.