IfElseImage | R Documentation |
Conditionally shows an image as a htmlwidget
IfElseImage(
condition,
true.image = "https://displayrcors.displayr.com/images/uparrow_grey.svg",
false.image = "https://displayrcors.displayr.com/images/downarrow_grey.svg"
)
condition |
Expression evaluating to |
true.image |
URL to image (jpeg, png or svg) to be shown when |
false.image |
URL to image (jpeg, png or svg) to be shown when |
## Not run:
IfElseImage(TRUE)
IfElseImage(3 < 2,
"https://displayrcors.displayr.com/images/thumbsup_grey.svg",
"https://displayrcors.displayr.com/images/thumbsdown_grey.svg")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.