nicholasehamilton / ggtern

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

ggtern: Error in guides_train(scales = scales$non_position_scales(), theme = theme, : could not find function "guides_train" #57

Open PPpissar opened 4 months ago

PPpissar commented 4 months ago

Hello,

This error was introduced after the update of ggplot2 from version 3.4.0 to 3.5.0.

library(ggtern) Loading required package: ggplot2 Want to understand how all the pieces fit together? Read R for Data Science: https://r4ds.hadley.nz/ Registered S3 methods overwritten by 'ggtern': method from
grid.draw.ggplot ggplot2 plot.ggplot ggplot2 print.ggplot ggplot2

Remember to cite, run citation(package = 'ggtern') for further info.

Attaching package: ‘ggtern’

The following objects are masked from ‘package:ggplot2’:

aes, annotate, ggplot, ggplot_build, ggplot_gtable, ggplotGrob, ggsave, layer_data,
theme_bw, theme_classic, theme_dark, theme_gray, theme_light, theme_linedraw,
theme_minimal, theme_void

t2$plot_tern() Input colors are not enough to use. Add more colors automatically via color interpolation ... Error in guides_train(scales = scales$non_position_scales(), theme = theme, : could not find function "guides_train"

Syutenjyo commented 4 months ago

hello,I've also met this issue too

PPpissar commented 4 months ago

Installing previous versions will not do for me since I have a lot of packages which are codependent.

spacebun commented 4 months ago

hello, have the same issue as well

wtorous commented 4 months ago

I am also encountering this error.

jenko76 commented 3 months ago

Reverting to ggplot 3.4.4 works for some functionality (ie it plots correctly) but girdlines and other themes are not working...

spinedaz commented 2 months ago

Hey! I am having the same error, have you find any solution?