grid.maker: grid maker

Description Usage Arguments Value Examples

Description

produce differently scaled one-dimensional grids

Usage

1
2
  grid.maker(bounds, num.points, spacing = "log.g",
    plotit = FALSE, ...)

Arguments

bounds

numeric vector of length 2: bounds of interval

num.points

number of points desired

spacing

character vector indicating the desired spacing rule. Currently one of expo, expo2, hyp.sine, log.grid, gumbel.grid, lognorm.grid or beta.grid

plotit

boolean TRUE if want a plot of result

...

additional arguments needed for grid.makers using distributions

Value

numeric vector of class "gridR" with attribute "spacing"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
grid.maker(bounds=c(-1,5),num.points=10,spacing="log.g",plotit=FALSE)
grid.maker(bounds=c(-1,5),num.points=10,spacing="log.g",plotit=TRUE)
grid.maker(bounds=c(-1,5),num.points=10,spacing="log.g2",plotit=TRUE)
grid.maker(bounds=c(-1,5),num.points=10,spacing="log.g2",plotit=FALSE)
grid.maker(bounds=c(-1,5),num.points=10,spacing="hyp.sine",plotit=FALSE)
grid.maker(bounds=c(-10,10),num.points=20,spacing="hyp.sine",plotit=TRUE)
grid.maker(bounds=c(-1,5),num.points=10,spacing="exp.grid",plotit=TRUE)
grid.maker(bounds=c(-1,5),num.points=10,spacing="exp.grid",plotit=FALSE)
grid.maker(bounds=c(1,5),num.points=10,spacing="lognorm.grid",plotit=TRUE,meanlog=3,sdlog=0.5)
grid.maker(bounds=c(-1,5),num.points=10,spacing="lognorm.grid",plotit=FALSE,meanlog=3,sdlog=0.5)
grid.maker(bounds=c(-1,5),num.points=10,spacing="gumbel.grid",plotit=TRUE,loc=1,scale=1.1)
grid.maker(bounds=c(-1,5),num.points=10,spacing="gumbel.grid",plotit=FALSE,loc=1,scale=1.1)
grid.maker(bounds=c(-1,50),num.points=10,spacing="gumbel.grid",plotit=TRUE,loc=1,scale=10)
grid.maker(bounds=c(-1,50),num.points=10,spacing="gumbel.grid",plotit=TRUE,loc=10,scale=10)
grid.maker(bounds=c(-1,5),num.points=10,spacing="beta.grid",plotit=TRUE,shape1=2,shape2=5,ncp=0)
grid.maker(bounds=c(-10,5),num.points=20,spacing="beta.grid",plotit=TRUE,shape1=0.5,shape2=0.5,ncp=0)
grid.maker(bounds=c(-10,5),num.points=20,spacing="beta.grid",plotit=TRUE,shape1=0.5,shape2=1,ncp=0)
grid.maker(bounds=c(-10,5),num.points=20,spacing="beta.grid",plotit=TRUE,shape1=0.5,shape2=1,ncp=2)
grid.maker(bounds=c(-1,5),num.points=10,spacing="beta.grid",plotit=FALSE,shape1=2,shape2=5,ncp=1)

floswald/gridR documentation built on May 16, 2019, 1:24 p.m.