Skip to content

Tick label formatting doesn't work with ggplot scale_y_continuous #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jseppanen opened this issue Jan 13, 2016 · 1 comment
Closed

Comments

@jseppanen
Copy link

When making a plot that uses either of:

  • 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)
@cpsievert
Copy link
Collaborator

Duplicate of #185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants