Description Usage Arguments Author(s) See Also Examples
Piecharts at arbitrary position and radii.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | LSD.pie(
props,
x = 0,
y = 0,
radius = 1,
colpal = "prgn",
simulate = FALSE,
daltonize = FALSE,
cvd = "p",
edges = 1000,
add = FALSE,
xlim = c(-1, 1),
ylim = c(-1, 1),
main = "LSD.pie: piecharts",
alpha = NULL,
addPercent = FALSE,
textcol = "black",
clockwise = FALSE,
init.angle = 0,
labels = c(),
cex = 1,
cex.percentage = cex,
border = NA,
...
)
|
props |
a numeric vector giving the relations of the pie pieces (need not to be normalized). |
x |
x-position of the piechart. |
y |
y-position of the piechart. |
radius |
a numeric value giving the radius of the piechart. |
colpal |
a character vector containing R built-in color names or a name of a |
simulate |
logical: if |
daltonize |
logical: if |
cvd |
character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope). |
edges |
an integer giving the number of edges the "circle" will have. |
add |
logical: if |
xlim |
x limits, standard graphics parameter. |
ylim |
y limits, standard graphics parameter. |
main |
title(s) of the plot, standard graphics parameter. |
alpha |
alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default). |
addPercent |
logical: if |
textcol |
a R build-in color for the percentages of |
clockwise |
if |
init.angle |
a numerical value representing an angle as a starting angle for the drawn slices. |
labels |
a character vector giving the names for the pie slices. |
cex |
scaling a numeric value giving the expansion factor for the slice names (if labels are given). |
cex.percentage |
a numeric value giving the expansion factor for the percentage values (if |
border |
a R build-in color giving the border color (NA by default). |
... |
additional parameters to be passed to points and plot. |
Bjoern Schwalb, Carina Demel
1 2 3 4 5 6 7 | emptyplot(xlim=c(1,9),ylim=c(1,9))
mtext(paste("LSD.pie: piecharts"),3,2,cex=1.25)
polygon(c(4,2,4,7,8),c(4,8,4,2,8))
LSD.pie(sample(1:50,5),4,4,add=TRUE,radius=2,colpal="prgn",alpha=75)
LSD.pie(sample(1:50,5),2,8,add=TRUE,colpal="prgn",alpha=75)
LSD.pie(sample(1:50,5),8,8,add=TRUE,colpal="prgn",alpha=75)
LSD.pie(sample(1:50,5),7,2,add=TRUE,colpal="prgn",alpha=75)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.