View source: R/Doughnut-grob.R
DoughnutGrob | R Documentation |
These functions create and draw doughnut.
DoughnutGrob(
x = 0.5,
y = 0.5,
r0 = 0,
r1 = 5,
value = runif(5),
percent = FALSE,
default.units = "npc",
name = NULL,
gp = gpar(),
vp = NULL
)
grid.doughnut(...)
x, y |
a numeric value or unit object. |
r0, r1 |
a non-negtive numeric value. |
value |
a numeric vector. |
percent |
logical. If FALSE (the default) the value will be treated as source value. |
default.units |
a string indicating the default units to use if x or y are only given as numeric vectors. |
name |
a character identifier. |
gp |
an object of class 'gpar'. |
vp |
a viewport object or NULL. |
... |
other parameters for |
a doughnut grob.
Hou Yun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.