A quick walk through of running a PCA on US nutrition and the use of a couple of different packages in R, to display
information graphically.
library(tidyverse)
library(corrplot)
library(cowplot)
library(hrbrthemes)
Information
The following dataset froms from the Nutrient database in the United States
This is from the now outdated SR27. It is also created from the full database. The “abbreviated file” in SR28 is more up to date than this data and contains more nutrients than we provide here.