ggplot2 Error: "could not find function 'scale_y_scientific'"
The error message 'could not find function 'scale_y_scientific'' suggests that the function scale_y_scientific() is not recognized. This could be due to the package that contains this function, 'scales', not being loaded or not being installed.
To resolve this issue, you can try installing and loading the scales package. You can do this by running the following code:
install.packages('scales') # Install the scales package
library('scales') # Load the scales package
After installing and loading the scales package, you should be able to use the scale_y_scientific() function without any issues.
原文地址: https://www.cveoy.top/t/topic/p1c7 著作权归作者所有。请勿转载和采集!