plot3views.ipcaps: Plot 3 views from the result of IPCAPS

View source: R/plot3views.ipcaps.R

plot3views.ipcapsR Documentation

Plot 3 views from the result of IPCAPS

Description

Plot the first three components of PCA using in 3 views.

Usage

plot3views.ipcaps(ipcaps_output)

Arguments

ipcaps_output

the returned object from the ipcaps2 function.

Details

This function generates a plot in the standard R graphic. Therefore, it can be saved to a file using png(), pdf(), jpeg(), and tiff().

Value

NULL

Examples


# Importantly, bed file, bim file, and fam file are required
# Use the example files embedded in the package

BED.file <- system.file("extdata","ipcaps_example.bed",package="IPCAPS2")
LABEL.file <- system.file("extdata","ipcaps_example_individuals.txt.gz",package="IPCAPS2")

my.cluster <- ipcaps2(bed=BED.file,
                      label.file=LABEL.file,
                      lab.col=2,
                      out=tempdir(),
                      silence=TRUE,
                      no.rep=1)

# Show a plot
plot3views.ipcaps(my.cluster)

kridsadakorn/ipcaps2 documentation built on June 11, 2022, 8:35 p.m.