When you change your scale, the formula also needs to be changed. Here is a possible solution, although I somehow cannot get confidence intervals to work.
myEquation=y ~ min+((max-min)/(1+10^(ec50-(x))))
ggplot(data=myData,aes(x=x,y=y))+geom_point()+scale_x_log10()+
geom_smooth(method="nls", formula = myEquation, start = startingGuess, se=FALSE)
UPDATE: Apparently the reason why confidence intervals do not work, is because standard errors are not currently implemented in predict.nls
. Therefore ggplot
also cannot display confidence intervals.