powered by
gghuan2 for multi-doughnut chart
gghuan2( tab = NULL, huan_width = 1, circle_width = 1, space_width = 0.2, circle_label = NULL, pal = NULL, name = TRUE, percentage = FALSE, text_params = NULL, circle_label_params = NULL, bar_params = NULL )
a ggplot
a dataframe with hierarchical structure
the huan width (numeric vector)
the center circle width
the space width between doughnuts (0~1).
the center circle label
color palette
label the name
label the percentage
parameters parse to geom_text
geom_text
parameters parse to geom_rect
geom_rect
# \donttest{ if (interactive()) { data.frame( a = c("a", "a", "b", "b", "c"), b = c("a", LETTERS[2:5]), c = rep("a", 5), number = 1:5 ) %>% gghuan2() } # }
Run the code above in your browser using DataLab