The plotting code below gives Error: Discrete value supplied to continuous scale
Error: Discrete value supplied to continuous scale
What\'s wrong with this code? It works fine until I try to change the s
if x is numeric, then add scale_x_continuous(); if x is character/factor, then add scale_x_discrete(). This might solve your problem.
x
scale_x_continuous()
scale_x_discrete()