I want to add two linear fits to my plot (Yes in ggplo2). The first fit will use all my points, the second will exclude a point (let's say first point).
dosis <- c(0.24, 0.33, 0.26, 0.18, 0.11, 0.05)
corriente <-c(301.3, 275.4, 253.8, 235.5, 219.8, 205.8)
library(ggplot2)
datos <-cbind.data.frame(dosis, corriente)
ggplot(datos, aes(x=corriente, y=dosis)) + geom_point() + geom_smooth(method=lm, se=FALSE)
This will give me my plot with my first fit (using all my points).. Now How do I exclude a datum and create the second fit? Do I need to add another geom_smooth command?
Thanks