symbols.pie: Plots scatter pie

View source: R/visium.graphics.R View source: R/.ipynb_checkpoints/visium.utilities-checkpoint.R

symbols.pieR Documentation

Plots scatter pie

Description

Plots set of pie charts in specified positions

Usage

symbols.pie(x, y, r, d, cols, border = NA, alpha0 = 0)

Arguments

x, y

positions of pies to plot

r

radiuses of pies (recycled along x)

d

matrix of pie piece sizes. Row sums are normalized to 1. Nrow(d) should be equal to lenght(x).

cols

colours of pieces. Ncol(d) should be equal to length(cols)

border

colour of pie borders, NA (default) for no borders.

alpha0

start angle

Examples

plot(1,t='n',xlim=c(0,5),ylim=c(0,10))
d = matrix(runif(6*4),ncol=4)
symbols.pie(c(1,2,3,1,2,3),c(1,1,1,1,1,1),1/2,d,1:4)

iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.