Description Usage Arguments Details Author(s) Examples

adds a rectangular box with rounded left and right edges to a plot

1 2 3 4 |

`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 <[email protected]>

1 2 3 4 5 6 7 8 9 10 11 | ```
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)
``` |

shape documentation built on Feb. 9, 2018, 6:08 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.