Plotting with ggplot2: “Error: Discrete value supplied to continuous scale” on categorical y-axis
问题 The plotting code below gives Error: Discrete value supplied to continuous scale What\'s wrong with this code? It works fine until I try to change the scale so the error is there... I tried to figure out solutions from similar problem but couldn\'t. This is a head of my data: > dput(head(df)) structure(list(`10` = c(0, 0, 0, 0, 0, 0), `33.95` = c(0, 0, 0, 0, 0, 0), `58.66` = c(0, 0, 0, 0, 0, 0), `84.42` = c(0, 0, 0, 0, 0, 0), `110.21` = c(0, 0, 0, 0, 0, 0), `134.16` = c(0, 0, 0, 0, 0, 0),