Description Usage Arguments Value Examples
This is a simple wrapper around scales::label_percent()
to convert numeric
input to percentages and return them as characters.
1 | format_percentage(x, ...)
|
x |
a numeric vector to format. |
... |
other arguments passed on to |
A character vector of length(x)
.
1 2 | x <- seq(0, 1, length.out = 5)
format_percentage(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.