add_pies: Add_pies on map or network for plot.data_agro,...

Description Usage Arguments Details

Description

Add_pies on map or network for plot.data_agro, plot.data_network

Usage

1
add_pies(p, n, format, plot_type, data_to_pie, variable, pie_size)

Arguments

p

network or map ggplot

n

network object from igraph or data frame with coordinates

format

format of n

plot_type

network or map

data_to_pie

data with the variables

variable

variable to display

pie_size

size of the pie

Details

script adapted from Pies On A Map, Demonstration script, By QDR : https://qdrsite.wordpress.com/2016/06/26/pies-on-a-map/

Guangchuang YU code : https://cran.r-project.org/web/packages/ggimage/vignettes/ggimage.html#geom_subview https://github.com/GuangchuangYu/ggimage/blob/master/R/geom_subview.R


priviere/PPBstats documentation built on May 6, 2021, 1:20 a.m.