Thanks Mehrbod. A quick breakdown of these dense lines:
-ord$data: Would be the imported artifact from read_qza()
-$ProportionExplained: is a vector of the proportion of variation explained
-[1] or [2] is denoting which axis you want the variation from, this would assume axis 1 is on the x axis and 2 is on the y.
-100* is multiplying by 100 to get a percent
-round(., 2) is saying to round to 2 decimal places
-paste(., "%") is saying to combine the number rounded to 2 decimals with a percent sign in the axis label
-xlab() and ylab() are the ggplot functions to create the x and y label respectively.
2 Likes