pieGrob: Draw Piechart

Description Usage Arguments Value

View source: R/pieGrob.R

Description

These functions use to create and draw piechart.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
pieGrob(
  value = runif(10),
  label = NULL,
  x = 0.5,
  y = 0.5,
  r0 = 0.5,
  r1 = 1,
  start = 0,
  end = 360,
  sep = 0,
  steps = 0.001,
  radius = 10,
  label.facing = "downward",
  label.size = 12,
  label.col = "black",
  default.units = "native",
  gp = gpar()
)

grid.pie(...)

Arguments

value

non-negtive numeric vector.

label

label for each sector.

x, y

a scala numeric value.

r0, r1

the radius of piechart, should be between 0 and 1.

start, end

offset of starting point from 3 o'clock in degrees.

sep

gap bewteen two adjacent sectors.

steps

increment of the sequence in radians.

radius

the size (in mm) of pie.

label.facing

one of downward, binding or clockwise.

label.size

the size of label.

label.col

the color of label.

default.units

a string indicating the default units.

gp

an object of class gpar.

...

extra parameters.

Value

a polygonGrob.


Hy4m/piechart documentation built on Jan. 1, 2022, 5:13 p.m.