Description Usage Arguments Details
Add_pies on map or network for plot.data_agro, plot.data_network
1 |
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.