Description Usage Arguments Value Author(s)
get.ggplot_pie.on.ggplot
displays pies on ggplot object such as network or map
1 2 3 | get.ggplot_pie.on.ggplot(ggplot, data, variable, factor, x.origin = 1,
y.origin = 1, r = 1, hide.labels.parts = NULL, labels.size = 2,
precision = 10000)
|
ggplot |
a ggplot object on which to put the pies |
data |
a data set with at least four columns: the variable, the factor, the X and Y coordinates for the pie. |
variable |
name of the column of data with the variable |
factor |
name of the column of data with the factor. factor is a location. |
x.origin |
the x origin of the pie |
y.origin |
the y origin of the pie |
r |
the radius of the pie. If the radius is too big and the pie does not fit on the ggplot object, an error is returned. |
hide.labels.parts |
see hide.labels.parts argument in |
precision |
the precision in the drawing of the pie. The higher the better. |
label.size |
size of the label. label corresponds to factor |
The function returns a ggplot with pies on it
Pierre Rivière
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.