get.ggplot_pie.on.ggplot: Display pies on ggplot object such as network or map within...

Description Usage Arguments Value Author(s)

Description

get.ggplot_pie.on.ggplot displays pies on ggplot object such as network or map

Usage

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)

Arguments

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 get.ggplot

precision

the precision in the drawing of the pie. The higher the better.

label.size

size of the label. label corresponds to factor

Value

The function returns a ggplot with pies on it

Author(s)

Pierre Rivière


priviere/shinemas2R_deprecated documentation built on May 8, 2019, 1:21 p.m.