Description Usage Arguments Examples
View source: R/MarkdownReportsDev.R
Quickly add a legend to an existing plot, and save the plot immediately.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
NamedColorVec |
Color of the boxes next to the text |
poz |
Position of the legend (def: 4). Use numbers 1-4 to choose from "topleft", "topright", "bottomright", "bottomleft". |
legend |
Labels displayed (Text) |
cex |
font size |
bty |
The type of box to be drawn around the legend. The allowed values are "o" (the default) and "n". |
... |
Additional parameters for legend() |
w |
Width of the saved pdf image, in inches. |
h |
Height of the saved pdf image, in inches. |
title |
What should be the title of the legend? NULL by default |
ttl.by.varname |
Should the title of the legend substituted from the NamedColorVec variable's name? ALSE by default. Does not work if you pass on a list item like this: list$element |
OverwritePrevPDF |
Save the plot immediately with the same name the last wplot* function made (It is stored in plotnameLastPlot variable). |
mdlink |
Insert a .pdf and a .png image link in the markdown report , set by "path_of_report". |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.