DoughnutGrob: Draw doughnut plot

View source: R/Doughnut-grob.R

DoughnutGrobR Documentation

Draw doughnut plot

Description

These functions create and draw doughnut.

Usage

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(...)

Arguments

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 DoughnutGrob().

Value

a doughnut grob.

Author(s)

Hou Yun


Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.