# Ggfun error with plotly

**URL:** <https://community.plotly.com/t/ggfun-error-with-plotly/3309>\
**Category:** Plotly R\
**Created:** [February 8, 2017, 4:43pm UTC](https://community.plotly.com/t/ggfun-error-with-plotly/3309 "2017-02-08T16:43:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_afh](https://avatars.discourse-cdn.com/v4/letter/_/13edae/32.png) [@\_afh](https://community.plotly.com/u/_afh)\
**Post date:** [February 8, 2017, 4:43pm UTC](https://community.plotly.com/t/ggfun-error-with-plotly/3309/1 "2017-02-08T16:43:33Z")

</div>

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

locale:
 [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           
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=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
```

---

<div class="post-metadata">

**Author:** ![jphillips](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@jphillips](https://community.plotly.com/u/jphillips)\
**Post date:** [February 15, 2017, 10:19pm UTC](https://community.plotly.com/t/ggfun-error-with-plotly/3309/2 "2017-02-15T22:19:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jphillips](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@jphillips](https://community.plotly.com/u/jphillips)\
**Post date:** [February 15, 2017, 10:30pm UTC](https://community.plotly.com/t/ggfun-error-with-plotly/3309/3 "2017-02-15T22:30:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![akitepowell](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@akitepowell](https://community.plotly.com/u/akitepowell)\
**Post date:** [August 1, 2017, 12:27pm UTC](https://community.plotly.com/t/ggfun-error-with-plotly/3309/4 "2017-08-01T12:27:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![atroiano](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@atroiano](https://community.plotly.com/u/atroiano)\
**Post date:** [August 23, 2018, 5:29pm UTC](https://community.plotly.com/t/ggfun-error-with-plotly/3309/5 "2018-08-23T17:29:48Z")

</div>

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