Description Usage Arguments Examples
View source: R/MarkdownReportsDev.R
Add extra labels to your bar plots at the top or the base.
1 2 3 4 5 6 7 8 9 10 11 12 13 | barplot_label(
barplotted_variable,
labels = iround(barplotted_variable),
bottom = FALSE,
TopOffset = 0.5,
relpos_bottom = 0.1,
OverwritePrevPDF = unless.specified("b.save.wplots"),
filename = plotnameLastPlot,
PNG_ = unless.specified("b.usepng", F),
w = 7,
h = w,
...
)
|
barplotted_variable |
The variable that you barplotted previously. |
labels |
Label text. |
bottom |
Put labels at the bottom of the bars. |
TopOffset |
Absolute offset from top. |
relpos_bottom |
Relative offset from bottom. |
OverwritePrevPDF |
Save the plot immediately with the same name the last wplot* function made (It is stored in plotnameLastPlot variable). Never inserts an mdlink. |
filename |
Filename to overwrite after errorbars are added to the current barplot. |
PNG_ |
Set to true if you want to save the plot as PNG instead of the default PDF. |
w |
Width of the saved pdf image, in inches. |
h |
Height of the saved pdf image, in inches. |
... |
Pass any other parameter of the corresponding text function(most of them should work). |
1 2 | barplot (1:10);
barplot_label(barplotted_variable = 1:10, labels = 11:2, filename = "myBarplot.pdf")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.