
harman
.
factors
A data.frame
of the expt
and batch
vectors.parameters
harman
for details.stats
center
prcomp
with
center=TRUE
.rotation
prcomp
.original
prcomp
.corrected
harmanresults
is the S3 object used to store the results from
harman
.
This object may be presented to summary and data exploration functions such
as plot.harmanresults
and summary.harmanresults
as well as the
reconstructData
function which creates a corrected matrix of
data with the batch effect removed.
harman
, reconstructData
,
pcaPlot
, arrowPlot
## HarmanResults
library(HarmanData)
data(OLF)
expt <- olf.info$Treatment
batch <- olf.info$Batch
olf.harman <- harman(as.matrix(olf.data), expt, batch)
plot(olf.harman)
summary(olf.harman)
pcaPlot(olf.harman, pc_x=2, pc_y=3)
pcaPlot(olf.harman, pc_x=2, pc_y=3, colBy='expt', pch=1)
olf.data.corrected <- reconstructData(olf.harman)
Run the code above in your browser using DataLab