plot_youden: Plot Youden Design

View source: R/hello.R

plot_youdenR Documentation

Plot Youden Design

Description

Plot a Youden experiment design from agricolae design.youden

Usage

plot_youden(
  design,
  x = "col",
  y = "row",
  factor_name = "varieties",
  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

x

Describes the x coordinates of a experiment design

y

Describes the y coordinates of a experiment design

factor_name

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

labels

string 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)
varieties<-c('perricholi','yungay','maria bonita','tomasa')
outdesign <-design.youden(varieties,r=2,serie=2,seed=23)
plot_youden(outdesign, labels = 'varieties')

agricolaeplotr documentation built on May 29, 2024, 5 a.m.