powered by
Perform PCA on gene segments frequency data for V- and J-segments and either return pca object or plot the results.
pca.segments(.data, .cast.freq.seg = T, ..., .text = T, .do.plot = T)pca.segments.2D(.data, .cast.freq.seg = T, ..., .text = T, .do.plot = T)
pca.segments.2D(.data, .cast.freq.seg = T, ..., .text = T, .do.plot = T)
Either data.frame or a list of data.frame or a result obtained from the geneUsage function.
geneUsage
if T then apply codegeneUsage to the supplied data.
Further arguments passed to prcomp or geneUsage.
prcomp
If T then plot sample names in the resulting plot.
if T then plot a graphic, else return a pca object.
If .do.plot is T than ggplot object; else pca object.
# NOT RUN { # Load the twins data. data(twb) # Plot a plot of results of PCA on V-segments usage. pca.segments(twb, T, scale. = T) # }
Run the code above in your browser using DataLab