I have loaded the data set Animals2
from the package library (robustbase)
, and I am interested on working with the logarithm of these data.
library(robustbase)
x<-log(Animals2)
plot(x, main="Plot Animals2", col="darkgreen")
Now I need to add the least-squares line, the LMS line, and the line
of Siegel, by using different colours. Finally, I also wanted to show two plots with the estimated 2-dimensional densities. The first plot should be a 3D visualization of the density (I was trying to use command persp
) and the second plot with the command image
(applied to the
density estimate).
I am a bit stuck and would appreciate some help.