Description Usage Arguments Details Value Author(s) See Also Examples
Creates a dimension reduction plot based on the methylation values of the given dataset.
1 2 3 4 5 6 7 8 9 10 | rnb.plot.dreduction(
rnb.set,
plot.type = "pca",
dimensions = 1:2,
distance.metric = "euclidean",
target = "sites",
point.types = 0L,
point.colors = 0L,
legend.space = 2
)
|
rnb.set |
Methylation dataset as an object of type inheriting |
plot.type |
Type of plot to be created. This must be one of |
dimensions |
Vector of two positive |
distance.metric |
Distance metric to be applied when reducing the dimensionality of the methylation data. This
must be one of |
target |
Site or region type to be used in the dimension reduction technique. This must be either
|
point.types |
Trait, specified as column name or index in the sample annnotation table of |
point.colors |
Trait, specified as column name or index in the sample annnotation table of |
legend.space |
Width, in inches, of the space dedicated for legends that will be assigned on the right side of the plot. This parameter is considered only if legends are actually included, that is, if sample traits are mapped to point types and/or colors. |
The analysis option "exploratory.top.dimensions"
controls whether dimension reduction is applied on all
probes, sites or regions available in the given dataset, or only on the most variable ones. In case a trait is mapped
to point types, the shapes to use are taken from the option "points.category"
. Similary, the option
"colors.category"
determines which colors are used when mapping sample categories to color. In cases when
numerical values are mapped to color, the option "colors.3.gradient"
is used. If the set of value contains
both positive and negative numbers, the middle point in the color legend is set to zero. See
RnBeads Options for more information on the options mentioned above.
The generated plot as an object of type ggplot
. The object also contains an
attribute "info"
, which is a list with the following elements:
"Target"
Targeted sites or regions; the value of the parameter target
.
"Technique"
Dimension reduction technique applied; one of "PCA"
or "MDS"
.
"All"
Total number of sites or regions defining the high dimensional methylation space.
"Missing"
Number of dimensions ignored because they contain (only) missing values.
"Selected"
Number of dimensions used when applying a dimension reduction technique.
"Explained"
Value between 0
and 1
showing the variance explained by the
selected dimensions, as a fraction of the total variance of all dimensions.
Yassen Assenov
summarized.regions
for listing all region types summarized
in a dataset
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.