IRIS Flower Data Set (R-001)

[This article was first published on NIR-Quimiometría, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

IRIS Flower Data Set
Este es el Link a Wikipedia donde podéis encontrar los datos que utilizó Fisher en su trabajo de 1936. Ya hemos trabajado con estos datos en Excel y los continuaremos usando en nuevas entradas.
En este link, podemos ver las fotos de las flores (IRIS en castellano son lírios).
Represento como LS (longitud del sépalo), AS (anchura del sépalo), LP (longitud del pétalo), AP (anchura del pétalo).
Este es uno de los gráficos de Wikipedia:
Con estos datos ya hemos desarrollado algunos “posts”, para familiarizarnos con el uso de matrices en Excel.
Vamos a usar estos mismos datos en fichero CSV e importarlos a “R” para trabajar con ellos, para ello usamos la función: read.table
Se muestran solo los 16 primeros datos por temas de espacio, pues en total son 150 (50 de cada clase).

Calculamos los componentes principales (centrados):

Representamos los “Mapas de Scores” con la función:
pairs(results2$x)
obteniendo:



save.image(“H:\\BLOG\\Curso básico Quimiometria\\IRIS\\parte1.RData”)



To leave a comment for the author, please follow the link and comment on their blog: NIR-Quimiometría.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)