Description Usage Arguments Value
This wrapper for formatC
includes code that allows for some
additional tweaking to be taken care of when a number is converted
to a text-string. It was primarily created in order to resolve an
issue related to the disappearance of trailing zeros when adding
numbers to a ggplot
. (Reminder: The problem occurred when
parse=TRUE
was used when adding text/labels.)
1 2 | xy_formatC(x, digits = 3, not_IEC60559 = TRUE, .plotmath = TRUE,
.decimal = ".")
|
x |
The number that should be converted to text. |
digits |
A number, default value |
.plotmath |
A logical value, default |
.decimal |
A character, default value |
not_IEC60599 |
A logical value, default |
A character-string based on x
, modified according to
the description given in the arguments digits
,
not_IEC60599
, .plotmath
and .decimal
.
Reminder: The result will have an attribute named equal
,
which is included sine the intended use of this function is
that it will be called from xy_sprintf
, which then will
either add an equality sign or an approximation sign based on
the value of the equal
-attribute.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.