I would like to create a scatter plot, but somehow when I tried it with the code below I got a boxplot for one of the data and a scatter plot for the other.
How can I convert the boxplot code to scatter plot?
plot(Effect[Oil=="Neem"] ~ Hours[Oil=="Neem"], data =
pedrep, xlim = range(1:8), ylim= range(Effect), col= "Green", ylab = "Repellence",
xlab= "Period of exposure", main="Paederus Repellence")
points(Effect[Oil=="Cinnamon"] ~ Hours[Oil=="Cinnamon"], data =
pedrep,xlim = range(1:8), ylim= range(Effect), col= "red", ylab = "Repellence",
xlab= "Period of exposure", main="Paederus Repellence")