gghuan2 {pcutils} | R Documentation |
gghuan2 for multi-doughnut chart
Description
gghuan2 for multi-doughnut chart
Usage
gghuan2(
tab = NULL,
huan_width = 1,
circle_width = 1,
space_width = 0.2,
circle_label = NULL,
name = TRUE,
percentage = FALSE,
text_params = NULL,
circle_label_params = NULL,
bar_params = NULL
)
Arguments
tab |
a dataframe with hierarchical structure |
huan_width |
the huan width (numeric vector) |
circle_width |
the center circle width |
space_width |
the space width between doughnuts (0~1). |
circle_label |
the center circle label |
name |
label the name |
percentage |
label the percentage |
text_params |
parameters parse to |
circle_label_params |
parameters parse to |
bar_params |
parameters parse to |
Value
a ggplot
Examples
data.frame(
a = c("a", "a", "b", "b", "c"), b = c("a", LETTERS[2:5]), c = rep("a", 5),
number = 1:5
) %>% gghuan2()
[Package pcutils version 0.2.6 Index]