fileName <- "https://www.casaonofri.it/_datasets/metamitron.csv"
metamitron <- read.csv(fileName)
mod <- drm(Conc ~ Time, fct = EXD.2(),
data = metamitron, curveid = Herbicide)
retVal <- getPlotData(mod)
library(ggplot2)
ggplot() +
geom_point(data = retVal$plotPoints, mapping = aes(x = Time, y = Conc)) +
geom_line(data = retVal$plotFits, mapping = aes(x = Time, y = Conc)) +
facet_wrap(~ Herbicide)
Run the code above in your browser using DataLab