Skip to content

ggplotly is not working with ggplot geom_bar #618

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
daniel319 opened this issue Jun 2, 2016 · 3 comments
Closed

ggplotly is not working with ggplot geom_bar #618

daniel319 opened this issue Jun 2, 2016 · 3 comments

Comments

@daniel319
Copy link

I can not reproduce ggplot2 geom_bar example.
dane<-data.frame(x=1:10,y=seq(-5,4))
ggplot(data=dane, aes( x=x, y=y)) + geom_bar(stat='identity')
Warning message:
Stacking not well defined when ymin != 0
ggplotly()
Warning message:
Stacking not well defined when ymin != 0
sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] PerformanceAnalytics_1.4.3541 reshape_0.8.5 scales_0.4.0 xts_0.9-7 zoo_1.7-13
[6] plotly_3.6.0 ggplot2_2.1.0

loaded via a namespace (and not attached):
[1] Rcpp_0.12.5 magrittr_1.5 munsell_0.4.3 colorspace_1.2-6 lattice_0.20-33 R6_2.1.2 stringr_1.0.0 httr_1.1.0
[9] plyr_1.8.3 dplyr_0.4.3 tools_3.2.2 parallel_3.2.2 grid_3.2.2 gtable_0.2.0 DBI_0.4-1 htmltools_0.3.5
[17] yaml_2.1.13 digest_0.6.9 assertthat_0.1 gridExtra_2.2.1 reshape2_1.4.1 tidyr_0.4.1 base64enc_0.1-3 htmlwidgets_0.6
[25] viridis_0.3.4 labeling_0.3 stringi_1.1.1 jsonlite_0.9.20

The ggplot is ok but the ggplotly is not. Do I have to go to a previous plotly version?

Thanks!

@timelyportfolio
Copy link
Collaborator

timelyportfolio commented Jun 2, 2016

guessing this is related to #560

@daniel319
Copy link
Author

Yes, You are right.

@timelyportfolio
Copy link
Collaborator

@daniel319 see #560 (comment) for how to accomplish with just plain plot_ly

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