nicholasehamilton / ggtern

Extension to ggplot2 for plotting ternary diagrams
www.ggtern.com
55 stars 14 forks source link

error in coord_tern() :could not find function "coord" #26

Closed RMHogervorst closed 8 years ago

RMHogervorst commented 8 years ago

It seems some of the basic functionality of the package is not working in my setup or in general.

I can't even plot the examples from the package. library(ggtern) ggtern(data=Feldspar,aes(x=An,y=Ab,z=Or)) + geom_point()

gives the error:

Error in coord_tern() : could not find function "coord"

restarting the r session did not work, trace and debug give me the same error. the other example in the package also gives me this error. Furthermore: using ggplot() + coord_tern() also gives the same error

I'm using the CRAN version 1.06.1 on a windows 64 bit installation. here is my session info: R version 3.2.2 (2015-08-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 8 x64 (build 9200)

locale: [1] LC_COLLATE=Dutch_Netherlands.1252 LC_CTYPE=Dutch_Netherlands.1252 LC_MONETARY=Dutch_Netherlands.1252 LC_NUMERIC=C
[5] LC_TIME=Dutch_Netherlands.1252

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

other attached packages: [1] ggtern_1.0.6.1 ggplot2_1.0.1.9003

loaded via a namespace (and not attached): [1] Rcpp_0.12.2 lattice_0.20-33 MASS_7.3-43 grid_3.2.2 plyr_1.8.3 gtable_0.1.2 magrittr_1.5 scales_0.3.0
[9] stringi_1.0-1 reshape2_1.4.1 sp_1.2-1 proto_0.3-10 tools_3.2.2 stringr_1.0.0 munsell_0.4.2 polyclip_1.3-2
[17] colorspace_1.2-6

f0ma commented 8 years ago

I have the same error. Probably the reason in incompatibility ggtern with the development version of ggplot (ggplot2_1.0.1.9003). With the version from CRAN (ggplot2_1.0.1) all works well.

RMHogervorst commented 8 years ago

I have checked and indeed using the CRAN version of GGPLOT2 there is no problem.

Thanks!