How to change format values in a Pie Chart made by plotly (in R)
<p>First of all thank you for spending a little bit of your time helping me to solve this issue.</p>

<p>I am getting started in <code>plot_ly</code> through R and I am struggling when trying to change the format of the values of my Pie Chart (I want them to be showed in the plot as currency "$" format). </p>

<p>So far my code looks like:</p>

<pre><code>data &lt;- data.frame(Level = c("Receipt","Disbursement"),Amount = c(1000,2000))

name_dataset &lt;- "Overview"

plot_ly(data=data, labels = Level, values = Amount, type = "pie", textinfo= "label+percent", 
        hoverinfo = "label+percent+value", outsidetextfont = list(color = "white")) %&gt;% layout(title = paste0(paste(unlist(strsplit(name_dataset,"_")),collapse = " ")))
</code></pre>

<p>Thank you for your help!</p>