View source: R/plots-utility-watermark.R
getWatermark | R Documentation |
Get a watermark, to be included in a clinical visualization
getWatermark(
label = "EXPLORATORY",
color = "lightgrey",
fontsize = 20,
file = NULL,
width = 800,
height = 500
)
label |
String with label for the watermark, 'EXPLORATORY' by default. |
color |
String with color for the watermark, 'lightgrey' by default. |
fontsize |
Integer with fontsize for the watermark, 20 by default. |
file |
(optional) String with path to a file where the watermark will be exported to. |
width |
Numeric, width of the plot in pixels, 800 by default. |
height |
Numeric, height of the plot in pixels, 500 by default. |
The file
with the watermark (invisibly).
Laure Cougnaud, Kirsten van Hoorde
Other watermark helpers:
addWatermark()
# export a watermark to a file
watermark <- tempfile(pattern = "watermark", fileext = ".png")
getWatermark(file = watermark)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.