fmt | R Documentation |
A function to control number of digits used in graphics.
fmt(digits = 2)
digits |
number of digits displayed |
This function is used within ggplot, e.g. (scale_y_continuous(labels=fmt(digits=3))) to control the number of digits presented. By default, axis labels will truncate zeros so that labels might read: 0, 2.5, 5, 7.5. Using this will result in labels: 0.0, 2.5, 5.0, 7.5.
Greg Cicconetti
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.