Discrete value supplied to continuous scale. By converting continuous data to categorical or using appropriate continuous color scales, this issue can be resolved. This error occurs you try to use scale_y_continuous () and the y variable is not numeric. See examples of using the scale function correctly and converting discrete data to factor or character type. Let me know in the comments, in case you have further comments and/or questions. Learn what causes the error message "Discrete value supplied to continuous scale" in R and how to resolve it. Aug 12, 2021 · Learn how to avoid this error when using scale_y_continuous() in ggplot2. Solve the error with this tutorial! Error: Discrete value supplied to continuous scale This error occurs when you attempt to apply a continuous scale to an axis in ggplot2, yet the variable on that axis is not numeric. Mar 26, 2015 · Plotting with ggplot2: "Error: Discrete value supplied to continuous scale" on categorical y-axis Asked 10 years, 5 months ago Modified 2 years, 4 months ago Viewed 359k times In summary: In this article, I explained how to deal with “Discrete value supplied to continuous scale” in the R programming language. Jul 23, 2025 · The "continuous value supplied to discrete scale" error occurs due to a mismatch between data types and ggplot2 scales. . The error occurs when you apply a continuous scale to a non-numeric variable on the y-axis. bxsp qkwg bavu qyxu gskzj cdnitp glfplzl uyyz mxiogw ypgw