demo_continuous(c(0, 1))
demo_continuous(c(0, 1), labels = label_percent())
# Use prefix and suffix to create your own variants
french_percent <- label_percent(
decimal.mark = ",",
suffix = " %"
)
demo_continuous(c(0, .01), labels = french_percent)
Run the code above in your browser using DataLab