How to Fix R Error: discrete value supplied to continuous scale
R Error: discrete value supplied to continuous scale typically occurs when you apply a continuous scale to an axis in ggplot2, yet the variable on that axis is not numeric. The main reason for the error is when you use a scale function intended for continuous data (like scale_x_continuous or scale_y_continuous) on a discrete variable, … Read more