Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ergmm.drawpie

Draw a pie chart at a specified location.


Description

Used by plot.ergmm to draw pie charts to visualize soft clusterings when pie=TRUE. Exported as a courtesy to dependent packages.

Usage

ergmm.drawpie(center, radius, probs, n = 50, cols = seq_along(probs), ...)

Arguments

center

A numeric vector of length 2, specifying the horizontal and the vertical coordinates of its center.

radius

Radius of the pie chart.

probs

A vector of probabilities/weights of each sector; they do not have to sum to 1.

n

Number of points to use to approximate the "circle".

cols

A vector of colors to use for the sectors.

...

Additional arguments, currently unused.

Author(s)

See COPYRIGHT.

See Also

plot.ergmm

Examples

plot(c(0,sum(1:11))*2,c(-10,10),type="n",asp=1)
for(i in 1:10) ergmm.drawpie(c(sum(1:i)*2,0), radius=i, probs=1:(i+1))

latentnet

Latent Position and Cluster Models for Statistical Networks

v2.10.5
GPL-3 + file LICENSE
Authors
Pavel N. Krivitsky [aut, cre] (<https://orcid.org/0000-0002-9101-3362>), Mark S. Handcock [aut], Susan M. Shortreed [ctb], Jeremy Tantrum [ctb], Peter D. Hoff [ctb], Li Wang [ctb], Kirk Li [ctb], Jake Fisher [ctb], Jordan T. Bates [ctb]
Initial release
2020-03-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.