You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scale_y_continuous(label=percent) – format Y axis ticks as dollar values
scale_y_continuous(label=dollar) – format Y axis ticks as percentages (scaling 1.00 into 100%),
the axis label formatting doesn't take any effect in the plotly plot, although it works as intended in ggplot2 plots (on screen or when saved to png files).
Example R code:
library(ggplot2)
library(scales)
library(plotly)
# put some data into d
p <- ggplot(d, aes(date, revenue)) +
geom_line() +
scale_y_continuous(label=dollar)
t <- plotly_POST(p)
The text was updated successfully, but these errors were encountered:
When making a plot that uses either of:
scale_y_continuous(label=percent)
– format Y axis ticks as dollar valuesscale_y_continuous(label=dollar)
– format Y axis ticks as percentages (scaling 1.00 into 100%),the axis label formatting doesn't take any effect in the plotly plot, although it works as intended in ggplot2 plots (on screen or when saved to png files).
Example R code:
The text was updated successfully, but these errors were encountered: