Reais: Wrapper around brformat

View source: R/helpers.R

ReaisR Documentation

Wrapper around brformat

Description

This is a wrapper around brformat.

Usage

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)
library(ggplot2)
p <- ggplot(centro_2015@data, aes(x = area_total, y = valor)) +
      geom_point(na.rm = TRUE)
p + scale_y_continuous(labels = reais(nsmall = 0))

lfpdroubi/appraiseR documentation built on April 14, 2024, 10:27 p.m.