Description Usage Arguments Value See Also Examples
xPieplot
is supposed to visualise data frame using pie plots. It
returns an object of class "ggplot".
1 2 3 4 5 6 7 8 9 10 11 |
df |
a data frame |
columns |
a vector containing column names of the input data frame. These columns are used to draw pie charts |
colormap |
short name for the colormap. It can be one of "jet" (jet colormap), "bwr" (blue-white-red colormap), "gbr" (green-black-red colormap), "wyr" (white-yellow-red colormap), "br" (black-red colormap), "yr" (yellow-red colormap), "wb" (white-black colormap), "rainbow" (rainbow colormap, that is, red-yellow-green-cyan-blue-magenta), and "ggplot2" (emulating ggplot2 default color palette). Alternatively, any hyphen-separated HTML color names, e.g. "lightyellow-orange" (by default), "blue-black-yellow", "royalblue-white-sandybrown", "darkgreen-white-darkviolet". A list of standard color names can be found in http://html-color-codes.info/color-names |
pie.radius |
the radius of a pie. If NULL, it equals roughly 1/75 |
pie.color |
the border color of a pie |
pie.color.alpha |
the 0-1 value specifying transparency of pie border colors |
pie.thick |
the pie border thickness |
legend.title |
the legend title |
gp |
an existing ggplot object or NULL. It is used for overlapping |
a ggplot object.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.