PlotFieldPlan: Makes a basic diagram from the output of 'MakeMainPlan'.

Description Usage Arguments Value Examples

View source: R/zigzag-plot.R

Description

It is often needed to make minor changes (for dead plants etc.) to the output of MakeMainPlan using PlotFieldPlan is a good way to do that.

Usage

1
2
3
4
5
6
7
8
PlotFieldPlan(
  List,
  DefaultCols = c(`Mb 311` = "#000000"),
  SZ = 1.5,
  TD = 0,
  Label = "geno",
  FlipR = FALSE
)

Arguments

List

Is the dater frame output from MakeMainPlan or something with the same hasders.

DefaultCols

Are a list of key value pair sets for any pre-defined colours to use.

SZ

Is the text size in the graph this defaults to 1.5 but can be adjusted for large and small field plans.

TD

This allows the text in the field plan to be rotated by n degrees (default = 0).

Label

The type of labelling to do on the plan. This can be name/genotype ('geno'), plot number ('number'), location eg. 2-3 ('loc'), just a dot ('plant'), or the UID/number of the plant ('UID').

FlipR

This flips the rows (default = FALSE).

Value

A ggplot2 heatmap style graph that can be saved with ggave.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
PlotFieldPlan(MakeMainPlan(LETTERS[1:12], 1:3, 1:4), SZ = 5)

PlotFieldPlan(MakeMainPlan(LETTERS[1:12], 1:3, 1:4,2,3), SZ = 3)

PlotFieldPlan(MakeMainPlan(LETTERS[1:12], 1:3, 1:4,2,3), SZ = 3, TD = 90, Label ='number')

PlotFieldPlan(MakeMainPlan(LETTERS[1:12], 1:3, 1:4,2,3), DefaultCols = c("A" = "red", "B" = "green", "C" = "blue"), SZ = 3)

PlotFieldPlan(MakeMainPlan(LETTERS[1:15], 1:3, 1:5,2,3), DefaultCols = c("A" = "red", "B" = "green", "C" = "blue"), SZ = 3, Label ='UID')

## End(Not run)

dan909/Fieldplanr documentation built on July 7, 2020, 1:17 p.m.