From 108085dd62c59abd73618045b34f6142d1aa4003 Mon Sep 17 00:00:00 2001 From: Alan O'Callaghan Date: Tue, 17 Dec 2024 13:44:24 +0000 Subject: [PATCH] Improve alt-text --- _episodes_rmd/01-introduction-to-high-dimensional-data.Rmd | 3 +-- _episodes_rmd/04-principal-component-analysis.Rmd | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/_episodes_rmd/01-introduction-to-high-dimensional-data.Rmd b/_episodes_rmd/01-introduction-to-high-dimensional-data.Rmd index 5e3a85f0..6842fbb1 100644 --- a/_episodes_rmd/01-introduction-to-high-dimensional-data.Rmd +++ b/_episodes_rmd/01-introduction-to-high-dimensional-data.Rmd @@ -48,8 +48,7 @@ blood test results, behaviours, and general health. An example of what high-dime in a biomedical study is shown in the figure below. - -```{r table-intro, echo = FALSE, fig.cap = "Example of a high-dimensional data table with features in the columns and individual observations (patients) in rows.", fig.alt = "Table displaying a high-dimensional data set with many features in individual columns relating to health data such as blood pressure, heart rate and respiratory rate. Each row contains the data for individual patients."} +```{r table-intro, echo = FALSE, fig.cap = "Example of a high-dimensional data table with features in the columns and individual observations (patients) in rows.", fig.alt = "Table displaying a high-dimensional data set with many columns representing features related to health, such as blood pressure, heart rate and respiratory rate. Each row contains the data for an individual patient. This type of high-dimensional data could contain hundreds or thousands of columns (features/variables) and thousands or even millions of rows (observations/samples/patients)."} knitr::include_graphics("../fig/intro-table.png") ``` diff --git a/_episodes_rmd/04-principal-component-analysis.Rmd b/_episodes_rmd/04-principal-component-analysis.Rmd index 021a96c3..0370683a 100644 --- a/_episodes_rmd/04-principal-component-analysis.Rmd +++ b/_episodes_rmd/04-principal-component-analysis.Rmd @@ -751,7 +751,7 @@ So far, we have only looked at a biplot of PC1 versus PC2 which only gives part of the picture. The `pairplots()` function in **`PCAtools`** can be used to create multiple biplots including different principal components. -```{r pairsplot, fig.cap="Multiple biplots produced by pairsplot().", fig.alt="An upper triangular grid of scatter plots of each principal component versus the others."} +```{r pairsplot, fig.cap="Multiple biplots produced by pairsplot().", fig.alt="A triangular grid of scatter plots. The grid is the upper right triangle of a square, where each entry of the grid corresponds to a plot of one principal component against another. For example, the plot in the upper left corner of the plot corresponds to principal component one plotted against principal component 2, and the plot to the right of this plots principal component 1 against principal component 3. Points correspond to samples, and are coloured arbitrarily from light blue to dark blue."} pairsplot(pc) ```