scale_format | R Documentation |
This function change the number of decimal places on axis labels. This was taken from the following link: https://stackoverflow.com/questions/38722202/how-do-i-change-the-number-of-decimal-places-on-axis-labels-in-ggplot2
scale_format(x, format = "%.1f")
x |
Character to format |
format |
How to reformat the labels |
A reformatted character
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.