as_piechart_data: Coerce to a Piechart data Functions to coerce an object to a...

Description Usage Arguments Value Examples

View source: R/as-piechart-data.R

Description

Coerce to a Piechart data Functions to coerce an object to a piechart data if possible.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
as_piechart_data(x, ...)

## S3 method for class 'matrix'
as_piechart_data(
  x,
  start = 0,
  end = 360,
  r0 = 0.5,
  r1 = 1,
  row_names = NULL,
  col_names = NULL,
  extra_mat = list(),
  ...
)

## S3 method for class 'data.frame'
as_piechart_data(x, ...)

## S3 method for class 'dist'
as_piechart_data(x, ...)

Arguments

x

any R object.

...

extra parameters.

start, end

offset of starting and ending point from 3 o'clock in degree.

r0, r1

start and end radius of arc heatmap.

row_names, col_names

character vector.

extra_mat

named list of extra matrix data.

Value

a piechart data.

Examples

1

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