This is a wrapper around brformat.

Reais(x, prefix = "R$", ...)

reais(...)

Arguments

x

a real number

prefix

currency units. Defaults for brazilian reais.

...

further arguments to be passed to brformat.

Value

text in Reais.

Examples

Reais(100)
#> [1] "R$100,00"
library(ggplot2) p <- ggplot(centro_2015@data, aes(x = area_total, y = valor)) + geom_point(na.rm = TRUE)
#> Error in ggplot(centro_2015@data, aes(x = area_total, y = valor)): trying to get slot "data" from an object (class "sf") that is not an S4 object
p + scale_y_continuous(labels = reais(nsmall = 0))
#> Error in eval(expr, envir, enclos): object 'p' not found