plot_bib: Plot Randomized Balanced Incomplete Block Designs

View source: R/hello.R

plot_bibR Documentation

Plot Randomized Balanced Incomplete Block Designs

Description

Plot a design of an experiment with an Randomized Balanced Incomplete Block Designs (BIB) from design.bib

Usage

plot_bib(
  design,
  y = "block",
  factor_name = "trt",
  labels = "plots",
  width = 1,
  height = 1,
  space_width = 0.95,
  space_height = 0.85,
  reverse_y = FALSE,
  reverse_x = FALSE
)

Arguments

design

outdesign from agricolae package

y

Describes the y coordinates of a experiment design

factor_name

Which factor should be used for plotting, needs to be a column in outdesign$book

labels

Describes the column from that the plots are taken to display them

width

numeric value, describes the width of a plot in an experiment

height

numeric value, describes the height of a plot in an experiment

space_width

numeric value, describes the share of the space of the plots. 0=only space, 1=no space between plots in term of width

space_height

numeric value, describes the share of the space of the plots. 0=only space, 1=no space between plots in term of height

reverse_y

boolean, should the plots of the experiment be changed in reverse order in Row direction? use reverse_y=TRUE to have same sketch as in agricolae. default:reverse_y=FALSE

reverse_x

boolean, should the plots of the experiment be changed in reverse order in column direction? default:reverse_x=FALSE

Value

ggplot graphic that can be modified, if wished

Examples

library(agricolaeplotr)
library(agricolae)
trt<-c('A','B','C','D')
k<-3
outdesign<-design.bib(trt,k,serie=2,seed =41,kinds ='Super-Duper') # seed = 41
plot_bib(outdesign)
#now let us change position of the columns
plot_bib(outdesign,reverse_x = TRUE)

agricolaeplotr documentation built on July 26, 2023, 5:47 p.m.