Description Usage Arguments Value Examples
Draw a Pie and Donut plot
1 2 3 4 |
data |
A data.frame |
pies |
A character string of column name be assigned to the Pies |
donuts |
A character string of column name be assigned to the Donuts |
count |
A character string of column name uses as count |
addPieLabel |
A logical value. If TRUE, labels are added to the Pies |
addDonutLabel |
A logical value. If TRUE, labels are added to the Donuts |
showRatioDonut |
A logical value. If TRUE, Ratios are added to the DonutLabels |
showRatioPie |
A logical value. If TRUE, Ratios are added to the PieLabels |
showRatioPieAbove10 |
A logical value. If TRUE, labels are added to the Pies with ratio above 10. |
title |
Plot title |
labelposition |
A number indicating the label position |
polar |
A logical value. If TRUE, coord_polar() function will be added |
interactive |
A logical value. If TRUE, an interactive plot will be returned |
An interactive Pie and Donut plot
1 2 3 4 5 6 7 | #ggPieDonut(mtcars,"am","cyl")
#p<-ggPieDonut(mtcars,"am","cyl")
#ggiraph(code=print(p))
#ggPieDonut(polar=FALSE)
#ggPieDonut(mtcars,"cyl","am")
#ggPieDonut(browsers,"browser","version","share",
# title="Browser market share 2011",interactive=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.