This function generates a PCA plot from a data matrix, dynamically coloring
the points based on the levels of a specified factor in the metadata.
Usage
make_pca_plot(data, meta, condition)
Arguments
- data
A numeric matrix containing the data.
- meta
A dataframe containing the metadata.
- condition
The column name in the metadata dataframe that contains the
factor levels for coloring the PCA plot.
Value
A ggplot object representing the PCA plot.