textflag | R Documentation |
adds a rectangular box with rounded left and right edges to a plot
textflag(mid, radx, rady, rx = rady, dr = 0.01,
col = femmecol(100), lcol = "white",
bcol = lcol, lwd = 2, angle = 0, lab = NULL,
leftright = TRUE, tcol = NULL, ...)
mid |
midpoint (x,y) of the box. |
radx |
horizontal radius of the box. |
rady |
vertical radius of the box. |
rx |
radius of rounded part. |
dr |
size of segments, in radians, to draw the rounded line (decrease for smoother). |
col |
fill color of the box; the box will be filled from left to right. |
lcol |
line color surrounding box. |
bcol |
line color to remove the ellipse from the rectangular box. |
tcol |
text color. |
lwd |
line width of line surrounding the box. |
angle |
rotation angle, degrees. |
lab |
one label or a vector string of labels to be added in box. |
leftright |
if |
... |
other arguments passed to function text. |
radx
and rady
are the horizontal and vertical radiusses of
the box; rx
is the horizontal radius of the rounded part.
Here horizontal
and vertical
denote the position BEFORE
rotation.
This function is similar to function roundrect, except that coloring is from left to right.
Karline Soetaert <karline.soetaert@nioz.nl>
emptyplot()
textflag(mid = c(0.5, 0.5), radx = 0.5, rady = 0.1,
lcol = "white", lab = "hello", cex = 5, font = 2:3)
textflag(mid = c(0.5, 0.15), radx = 0.5, rady = 0.1,
rx = 0.3,lcol = "black", lab = "hello 2", cex = 4,
font = 2, angle = 20, tcol = "darkblue")
textflag(mid = c(0.5, 0.85), radx = 0.5, rady = 0.1, rx = 0.03,
lcol = "white", lab = "hello 3", cex = 4, font = 2,
leftright = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.