Hello community, sorry for the English, I speak Spanish ... I try to run this code
install.packages("MASS") library(MASS) install.packages ("evd") library(evd) X=lossalae U=cbind(rank(X[,1])/(nrow(X)+1),rank(X[,2])/(nrow(X)+1)) The standard tool to plot nonparametric estimators of densities is to use multivariate kernels. We can look at the density using mat1=kde2d(U[,1],U[,2],n=35) install.packages("mgcv") library(mgcv) persp(mat1$x,mat1$y,mat1$z,col="green" , shade=TRUE,theta=s*5 , xlab="",ylab="",zlab="",zlim=c(0,7)) I get this error Error: object 'grDevices' not found Can anyone help? I have R 3.0.1 windows 8 Thanks in advance [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.