Description Usage Arguments Details Value Author(s) Examples
Function to build a suitable suitable subspatial grid.
1 |
DAT |
Dataframe containing the coordinates from factorial techniques. |
lag |
Distance between grid points. |
x1 |
supplementary extension on the left. |
x2 |
supplementary extension on the right. |
y1 |
supplementary extension upwards. |
y2 |
supplementary extension downwards. |
Extensions can be useful if one or several variables want to be evaluated outside the subspatial distribution generated by the factorial technique.
Dataframe containing coordinate points of the generated grid.
Victor Vicente Palacios
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data("iris")
Versicolor <- iris[which(iris$Species=='versicolor'),-5]
##Data Standarization
means_vers <- apply(Versicolor,2,mean)
sd_vers <- apply(Versicolor,2,sd)
Versicolor_st <- Versicolor
for (i in 1:length(Versicolor[1,]))
{Versicolor_st[,i] <- (Versicolor[,i]-means_vers[i])/sd_vers[i]}
##PrComp
PC_train <- princomp(Versicolor_st)
#Grid
xygrid <- GRID_MGSR(as.data.frame(PC_train$scores[,1:2]),0.05)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.