BoxedText(x, y = NULL, labels = seq_along(x), adj = NULL, pos = NULL, offset = 0.5, vfont = NULL, cex = 1, txt.col = NULL, font = NULL, srt = 0, xpad = 0.2, ypad = 0.2, density = NULL, angle = 45, col = "white", border = par("fg"), lty = par("lty"), lwd = par("lwd"), ...)
NULL
for the current font family, or a character vector of length 2 for Hershey vector fonts. The first element of the vector
selects a typeface and the second element selects a style. Ignored if labels is an expression.par("cex")
yields the final character size. NULL
and NA
are equivalent to 1.0.par()
.par("fg")
. Use border = NA
to omit borders
(this is the default).
If there are shading lines, border = TRUE
means use the same colour for the border as for the shading lines."solid"
.lwd = 0
(as in the examples) is device-dependent.SpreadOut
, similar function in package plotrix boxed.labels
(lacking rotation option)Canvas(xpd=TRUE)
BoxedText(0, 0, adj=0, label="This is boxed text", srt=seq(0,360,20), xpad=.3, ypad=.3)
points(0,0, pch=15)
Run the code above in your browser using DataLab