plot_design.factorial_rcbd: Plot Factorial Designs with rcbd Design

Description Usage Arguments Value Examples

View source: R/hello.R

Description

Plot a design of a factorial experiment with randomized complete block design (rcbd) from design.ab

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_design.factorial_rcbd(
  design,
  y = "row",
  factor_name = "A",
  width = 1,
  height = 1,
  space_width = 0.95,
  space_height = 0.85,
  reverse_x = FALSE,
  reverse_y = 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

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_x

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

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

Value

ggplot graphic that can be modified, if wished

Examples

1
2
3
4
5
6
7
library(agricolaeplotr)
library(agricolae)
trt<-c(2,4)
k=6
outdesign<-design.ab(trt, r=k, serie=3,design='rcbd')
plot_design.factorial_rcbd(design=outdesign,factor_name = 'B')
plot_design.factorial_rcbd(outdesign,reverse_y = TRUE,reverse_x = TRUE)

agricolaeplotr documentation built on July 21, 2021, 1:06 a.m.