R/before_after_pca_and_plate_regression_plots.R
before_after_pca_and_plate_regression_plots.Rd
Show the effect of regressing out plate effects on the PCs
before_after_pca_and_plate_regression_plots(
counts,
pca_basis_data,
x_pc,
y_pc,
meta,
plate_colors,
plot_title,
pc_levels = NA
)
log normalized "counts"
data from which to create the PCA basis vectors
which PC to plot on the x axis
which PC to plot on the Y axis
sample metadata. Rows should be in same order as counts
vector of colors for each batch
title of plot
a vector of PC levels, eg 1,3,6,2,4,5 which will control the order which the PCs are plotted
A list that includes plots and data