powered by
Draw a pie plot
ggPie( data, mapping, addPieLabel = TRUE, showRatioPie = TRUE, showRatioPieAbove10 = TRUE, title = "", labelposition = 1, polar = TRUE, use.label = TRUE, use.labels = TRUE, interactive = FALSE )
A data.frame
Set of aesthetic mappings created by aes or aes_.
A logical value. If TRUE, labels are added to the Pies
A logical value. If TRUE, Ratios are added to the PieLabels
A logical value. If TRUE, labels are added to the Pies with ratio above 10.
Plot title
A number indicating the label position
A logical value. If TRUE, coord_polar() function will be added
Logical. Whether or not use column label in case of labelled data
Logical. Whether or not use value labels in case of labelled data
A logical value. If TRUE, an interactive plot will be returned
An interactive pie plot
# NOT RUN { require(ggplot2) require(ggiraph) require(plyr) require(moonBook) ggPie(data=browsers,aes(pies=browser,count=share)) ggPie(data=acs,aes(pies=Dx)) # }
Run the code above in your browser using DataLab