Question:
I have set up a GAM but when i plot it i run into the issue as below, does anyone know how to fix this issue? Data, model and plot code used below;data snipet:

Answer:
Assuming you’re using the built-inco2
and mgcv
library:
If you have better answer, please add a comment about this, thank you!