genMatrix function

Generate Test Matrices for plotBubbles

Generate Test Matrices for plotBubbles

Generate a test matrix of random numbers (mu = mean and signa = standard deviation), primarily for plotBubbles.

genMatrix(m,n,mu=0,sigma=1)

Arguments

  • m: number of rows
  • n: number of columns
  • mu: mean of normal distribution
  • sigma: standard deviation of normal distribution

Returns

An m by n matrix with normally distributed random values.

Author(s)

Jon T. Schnute, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC

See Also

plotBubbles

Examples

local(envir=.PBSmodEnv,expr={ plotBubbles(genMatrix(20,6)) })