plotdmat: Plot the distance matrix in dbICC

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/plotdmat.R

Description

This function is to plot the distance matrix in dbICC including the segmentation boundary (colored in red) between the within- distance and between-distance based on ggplot2.

Usage

1
plotdmat(dmat, nsub, nmea, xlab = NULL, legend = TRUE)

Arguments

dmat

See dm2icc.

nsub

number of subject or individual.

nmea

a vector containing number of measurement for each subject or individual; if nmea is a scalar, it means each subject shares the same number of the measurement.

xlab

a title for x axis.

legend

logicals. It defaults to show the legend bar.

Value

a ggplot object

Author(s)

Meng Xu mxu@campus.haifa.ac.il

References

See Also

dm2icc,dm2icc.bt

Examples

1
# See example for dm2icc

wtagr/dbicc documentation built on April 8, 2020, 7:18 p.m.