Description Usage Arguments Examples
Create and save pie charts as .pdf, in "OutDir". If mdlink =T, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
1 2 3 4 5 | wpie(variable, ..., percentage = TRUE, both_pc_and_value = F,
plotname = substitute(variable),
col = gplots::rich.colors(length(variable)),
savefile = UnlessSpec("b.save.wplots"), w = UnlessSpec("b.defSize", 7),
h = w, mdlink = ww.set.mdlink())
|
variable |
The variable to plot. |
... |
Pass any other parameter of the corresponding plotting function (most of them should work). |
percentage |
Display percentage instead of counts. TRUE by default. |
both_pc_and_value |
Report both percentage AND number. |
plotname |
Title of the plot (main parameter) and also the name of the file. |
col |
Fill color. Defined by rich colours by default |
savefile |
Save plot as pdf in OutDir, TRUE by default. |
w |
Width of the saved pdf image, in inches. |
h |
Height of the saved pdf image, in inches. |
mdlink |
Insert a .pdf and a .png image link in the markdown report, set by "path_of_report". |
1 | wpie (variable = , ... = , percentage = TRUE, plotname = substitute(variable), w = 7, h = w, mdlink = F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.