I wanted to determine the values of those red arrows created by the biplot() with the usage of prcomp() function. I would like to determine arrows length and position to compare them more accurately. Here is the code that I use:
df <- read.csv(file = "data/PCA_data_all.csv", sep = ",")
df <- df %>%
separate(model_name, into = c("Make"), sep = " ", remove = FALSE)
df <- df %>%
select(-model_name)
df[,2:31] <- scale(df[,2:31])
brand.mean <- aggregate(df[,2:31], list(df[,1]), mean)
row.names(brand.mean) <- brand.mean$Group.1
brand.mean <- brand.mean[,-1]
rating.pc <- prcomp(brand.mean, scale=TRUE)
plot(rating.pc, type="l")
biplot(rating.pc, main="Brand Positioning", cex=c(0.5, 0.5))
From what I understand biplot() itself doesn't let you see those values which is a shame :/