makePlots: makePlots function

View source: R/makePlots.R

makePlotsR Documentation

makePlots function

Description

function to make field plots. This is the primary function for this package. Produces a

Usage

makePlots(
  trial,
  ranges,
  passes,
  rangeDist = 16,
  passDist = 5,
  rstart = 1,
  pstart = 1,
  angle = 0,
  plotNo = 1000,
  blockSize = ranges * passes,
  nBlock = 1,
  serpentine = TRUE,
  startSerp = FALSE,
  ref = c(0, 0),
  border = 0,
  borderName = "B",
  borderPlotNo = 1,
  updateB = TRUE,
  ignorePasses = NULL,
  fieldViewMatrix = TRUE,
  fill = FALSE,
  fillBlock = FALSE,
  Line = NULL,
  Pedigree = NULL,
  Entry = NULL,
  Rep = NULL
)

Arguments

trial

either an obect of class 'trialDesign' or a character vector of length 1 for the trial name.

ranges

numeric. number of ranges (rows)

passes

numeric. number of passes (columns)

rangeDist

numeric. distance between ranges, on center.

passDist

numeric. distance between passes, on center.

rstart

numeric. range to start plots on. Default is 1

pstart

numeric. pass to start plots on. Default is 1

angle

angle to . Default is 0

plotNo

value to use for plot numbers (series, either 100, 1000 etc). or the actual plot numbers desired (length of number of plots). Default is 1000

blockSize

numeric. Size of a block. Default is ranges * passes

nBlock

numeric. Number of blocks. If greater than one, the series will be updated once the block is filled. I.e. if block size is 120, and there are 240 plots, then teh first block will contain plots 1001:1120 and the second block will contain plots 2001:2120. Default is 1

serpentine

Should plot numbers be planted serpentine?. Default is TRUE

startSerp

Should plots start numbering serpentine? Useful when the user wants to change the normal direction at ranges greater than 1. Default is FALSE

ref

Reference point for all plots to start at. Typically this will be the bottom left point for teh first plot. Default is c(0,0)

border

numeric. How many passes should be borders? If length is 1 than both sides will have the same number of border passes. If length is 2, then first element specifies number of left border passes and second element specifies number of right border passes. Default is 0

borderName

character. What should borders be named. Default is "B"

borderPlotNo

integer. What number should be used to start counting border plots? Default is 1

updateB

logical.Shoud border numbers be updated? Default is TRUE

ignorePasses

numeric. Which passes should be ignored when plotting? Useful when the users wants to skip passes, example, when two trials are side by side in teh same block. Default is NULL

fieldViewMatrix

Should the matrix represent the field view? I.e. the first plots will be in the last rows of the matrix (i.e. the bottom). Default is TRUE

fill

logical. Should the remaining plots in eh range be filled with fill? Default is FALSE

fillBlock

logical. Should the rest of the block be filled with fill? Default is FALSE

Line

character. Optional vector of line names. Default is NULL

Pedigree

character. Optional vector of line pedigrees. Default is NULL

Entry

integer. Optional vector of Entry numbers names. Default is NULL

Details

[fill in details here]

Value

object of class 'fieldPlots'

Examples

# none

nsantantonio/fieldMapR documentation built on Feb. 4, 2025, 3:07 a.m.