Skip to content

Data with High Values #429

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
fabioand2k opened this issue Jan 26, 2016 · 2 comments
Closed

Data with High Values #429

fabioand2k opened this issue Jan 26, 2016 · 2 comments

Comments

@fabioand2k
Copy link

Hello,

if i try to run ggplotly with large values (even with low number of observations)

when run, crash my machine. (i tried with another machine, and same problem)

code below:

library(ggplot2)
library(plotly)

employee <- c('John Doe','Peter Gynn','Jolie Hope')
salary <- c(210000000, 234000000, 268000000)

employ.data <- data.frame(employee, salary)

p <- ggplot(employ.data ,aes(x=employee, y=salary)) +
geom_bar(stat='identity', color="black") +
scale_y_continuous(labels = function(x) format(x, big.mark = '.', decimal.mark = ',', scientific = FALSE))
ggplotly(p)

thanks

@cpsievert
Copy link
Collaborator

We don't (yet) support specifying labels with a function. Closing since this is a duplicate of #185

@fabioand2k
Copy link
Author

Hi Carlson,

the problem is not scale, sorry

the problem is big number.

library(ggplot2)
library(plotly)

employee <- c('John Doe','Peter Gynn','Jolie Hope')
salary <- c(210000000, 234000000, 268000000)

employ.data <- data.frame(employee, salary)

p <- ggplot(employ.data ,aes(x=employee, y=salary)) +
geom_bar(stat='identity', color="black")
ggplotly(p)

if you run this dataframe with
salary <- c(210, 234, 268) = run instantly
and if you run with
salary <- c(210000000, 234000000, 268000000) = crash machine by high memory

the problem is when you use "big numbers"
thanks

@fabioand2k fabioand2k mentioned this issue Jan 27, 2016
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