0

I have two datasets and am trying to add a linear model based on one dataset (pesticide concentration by month) on top of a boxplot from the other dataset (pollinator mortality by month).

I've tried geom_boxplot(pollinator dataset)+ geom_point(pesticide dataset)+ geom_smooth(method=lm), but, as expected, got the error "Error: Discrete value supplied to continuous scale".

  • 3
    Welcome to SO, Frank! The general answer is yes. But for more help we need [a minimal reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) including a working code example and a snippet of your datasets or some fake datasets. – stefan Feb 24 '23 at 17:30

0 Answers0