Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

genMatrix

Generate Test Matrices for plotBubbles


Description

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

Usage

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

Value

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

Examples

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

PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.