Skip to content

scale_y_log10() alters tooltip values in ggplotly #804

Closed

Description

@kurtosis

If I transform an axis to log scale this alters the values that show up in the tooltip. For example, I get
'val=0.95' (i.e. log10(9)), rather than 'val=9'

library(plotly)
test=data.frame(index=c(1,2,3), val=c(9,14,2))
ggplotly(
ggplot(test, aes(x=index, y=val)) + geom_point() + scale_y_log10()
)

Activity

  1. titaniumtroop commented on Mar 21, 2017

    @titaniumtroop

    Same goes for scale_[xy]_sqrt()

    library(plotly)
    test=data.frame(index=c(1,2,3), val=c(9,14,2))
    ggplotly(
    ggplot(test, aes(x=index, y=val)) + geom_point() + scale_y_sqrt()
    )
    

    screen shot 2017-03-21 at 12 08 37

  2. added a commit that references this issue on Apr 21, 2017
    a965714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions