Black Lives Matter. Please consider donating to Black Girls Code today.

Ggfun error with plotly

Hi. I’m trying out plotly for the first time. I have a ggplot object I’m trying to transform into a plotly one, but I’m getting an error. I searched the web and couldn’t find anyone else with this issue. Any ideas? I can provide more info if needed

> ggplotly(p)
Error in ggfun("create_layout")(plot$facet, plot$coordinates) : 
  unused argument (plot$coordinates)
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Gentoo/Linux

 [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C             
 [3] LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8    
 [5] LC_MONETARY=en_US.utf8    LC_MESSAGES=en_US.utf8   
 [7] LC_PAPER=en_US.utf8       LC_NAME=C                
 [9] LC_ADDRESS=C              LC_TELEPHONE=C           

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

other attached packages:
[1] plotly_4.5.6.9000 ggplot2_2.2.1     dplyr_0.5.0      

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.9.2     magrittr_1.5      munsell_0.4.3     viridisLite_0.1.3
 [5] colorspace_1.2-7  xtable_1.8-2      R6_2.2.0          httr_1.2.1       
 [9] plyr_1.8.4        tools_3.2.2       grid_3.2.2        gtable_0.2.0     
[13] miniUI_0.1.1      DBI_0.5-1         crosstalk_1.0.0   htmltools_0.3.5  
[17] lazyeval_0.2.0    assertthat_0.1    digest_0.6.12     tibble_1.2       
[21] shiny_1.0.0       tidyr_0.6.1       purrr_0.2.2       colourpicker_0.3 
[25] base64enc_0.1-3   htmlwidgets_0.8   mime_0.5          labeling_0.3     
[29] scales_0.4.1      jsonlite_1.2      httpuv_1.3.3

I am having the same issue, but can’t find any solutions so far. Will post again here if I find anything.

I was using the development version of plotly, and was having this error.
I just downgraded to the CRAN version (4.5.6) using install.package(“plotly”) , and this error went away for me.

1 Like

I realize this thread is a little old, but I’m having this issue now too but only in Rstudio server pro in a linux environment. It seems to work just fine when I’m running the same code in Rstudio desktop on a windows machine. In both cases I’m using plotly version 4.7.0. Is there a known issue that I should be aware of in this case?

Anyone find a resolution to this? I am experiencing this and can’t seem to figure it out.