addOnePoint: Add data point

Description Arguments Details Author(s) Examples

Description

Adds one point to each group in the matrix.

Arguments

mat

from makeMatrix

groups

from makeGroups

seed

passed to set.seed

Details

This function is designed to add one point in each dimension per group to the current matrix. The points that are added are done so with a call to makeMatrix where the x and y arguments are identical to the origional matrix. The function is primairly designed to work with the zeroOrHundred function.

Author(s)

Jason Serviss

Examples

1
2
3
mat <- makeMatrix(x=c(0,100), y=c(0, 100), dim=2, points=10)
groups <- makeGroups(mat, names=c("grp1", "gpr2"))
matPlus <- addOnePoint(mat, groups)

GranderLab/ClusterSignificanceExtras documentation built on May 6, 2019, 6:30 p.m.