I am trying to do an ANCOVA test of a specific dataset using fANCOVA package and the loess.ancova function.
loess.ancova(y=dt$response,x=dt$var1,group=dt$species,family= "gaussian",method="Speckman", plot = T)
After calling the code I get a plot similar to this
How can I change the legend and the axis names? I tried using
loess.ancova(y,x,group,...,plot=T, xlab="var1", ylab="response")
but nothing changed, since that failed I have no idea how to even try to change the legend
Any help would be appreciated
one possibility is to save the result of your
loess.ancovacall:Inspection of the result with
str(result)shows that it contains an item "smooth.fit":... which you can plot, using the desired base
plot()arguments: