0

I am looking for a way to format the labels in my piechart in R.
The values are shown with thousands separator "," and decimal separator ".".
I would like it the other way around, but when I format the value itself, the plot cannot be created, because then my values are characters.

Thanks! Example

Rui Barradas
  • 70,273
  • 8
  • 34
  • 66
  • Maybe [this SO post](https://stackoverflow.com/questions/29465941/format-number-in-r-with-both-comma-thousands-separator-and-specified-decimals) is relevant. Something like `format(x, big.mark = ".", decimal.mark = ",")`. – Rui Barradas Aug 26 '21 at 12:32
  • What plotting library are you intending to use? Default plot? `ggplot`? `plotly`? – c0bra Aug 26 '21 at 12:38
  • I am using googleVis, but I already tried with plotly and faced the same issues. format(...) does not work as I explained above: If I format the value, I cannot build a chart, because they are not numbers anymore – Rebell236 Aug 26 '21 at 13:43

0 Answers0