randomized.block.layout: Draw a randomized block experiment design

View source: R/randomized.block.layout.R

randomized.block.layoutR Documentation

Draw a randomized block experiment design

Description

The function could be used as drawing a randomized block experiment design visually. You can change parameters including quadrate size, the distance between adjacent qudarates, the number of blocks and the number of treatments etc.

Usage

exp.design.fig(code.matrix=NULL, quadrat.side = c(2, 2), space = c(2, 2), block = 4, treatment = 9,outside=5,...)

Arguments

code.matrix

if code is available, a code matrix can be feed. Note: block (row) by treatment (column) structure

quadrat.side

the side of typical quadrates.

space

the distance between adjacent quadrates.

block

the number of blocks.

treatment

the number of treatments or treatment combinations.

outside

the outer distance space for experiment setup.

...

further arguments pass to the plot function.

Examples

# 6 blocks, 6 fertilizer levels,5 x 5 quadrate size,2 m distance between two adjacent quadrates
randomized.block.layout(cex = 1.2,quadrat.side = c(5, 5), space=c(2, 2), treatment = 6,block = 6,xlab='',ylab='',outside = 3)

# 4 blocks, 9 fertilizer levels,2 x 2 quadrate size,1 m distance between two adjacent quadrates
randomized.block.layout(cex = 1.2,quadrat.side = c(2, 2), space = c(2, 2),treatment = 9, block = 4, xlab='',ylab='')


randomized.block.layout(matrix(1:36, ncol=9,byrow=TRUE),cex = 1.2,quadrat.side = c(2, 2), space = c(2, 2), treatment = 9, block = 4, xlab='',ylab='')


liuguofang/figsci documentation built on Nov. 24, 2023, 1:45 p.m.