Description Usage Arguments Value Examples
Print a plus/minus character.
1 2 |
margin |
The number after the plus/minus. Can be a character. |
x |
The number, if any, before the plus/minus. Can be a character. |
format |
Function. If provided, formats |
margin_format |
Function. If provided, formats |
parentheses |
Logical. Should |
contract |
Logical. If |
Character. x
plus or minus a margin
(UTF-8).
ish
uses glue
,
so you can use curly bracket notation in x
and margin
,
just like with glue
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(scales)
ish()
ish("5%")
ish(.05, format = percent_format(accuracy = 1))
ish(
x = 100,
margin = .05,
margin_format = percent_format(accuracy = 1),
parentheses = TRUE
)
ish(
x = 1e3,
margin = .05,
format = comma,
margin_format = percent_format(accuracy = 1),
parentheses = TRUE
)
ish(x = 5, margin = 5)
ish(x = 5, margin = 5, contract = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.