dput(chi)
chi
"Austrelmis", "Prionocyphon", "Neoplasta", "Gigantodax", "Simulium",
"Tipula", "Alotanypus", "Pentaneura", "Corynoneura", "Cricotopus",
"Tanytarsus", "Podonomus", "Podonomopsis", "Parochlus"), MOPF = c(75,
5, 20, 93, 40, 98, 65, 30, 30, 60, 35, 15, 90, 95, 25, 85, 95
), MA = c(25, 95, 0, 7, 0, 2, 15, 65, 0, 20, 5, 85, 10, 5, 75,
15, 5), RA = c(0, 0, 80, 0, 60, 0, 20, 5, 0, 20, 60, 0, 0, 0,
0, 0, 0), TV = c(0, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0,
0, 0), GT = c("detritívoro", "herbívoro", "depredador", "detritívoro",
"depredador", "detritívoro", "detritívoro", "herbívoro", "herbívoro",
"detritívoro", "depredador", "herbívoro", "detritívoro", "detritívoro",
"herbívoro", "detritívoro", "detritívoro")), class = "data.frame", row.names = c("Andesiops",
"Meridialaris", "Polycentropus", "Austrelmis", "Prionocyphon",
"Neoplasta", "Gigantodax", "Simulium", "Tipula", "Alotanypus",
"Pentaneura", "Corynoneura", "Cricotopus", "Tanytarsus", "Podonomus",
"Podonomopsis", "Parochlus"))```¨
library(ggfortify)
library(ggplot2)
rownames(chi)<- chi$Taxon
chicucha<- chi[c(2, 3, 4, 5)]
chicucha
autoplot(prcomp(chicucha))
autoplot(prcomp(chicucha), data = chi, colour = 'GT')
autoplot(prcomp(chicucha), data = chi, colour = 'GT', label = TRUE, loadings = TRUE)