response_trt_graph: Response by Treatment Graphs

Description Usage Arguments Value Author(s) Examples

View source: R/Plotfunction.R

Description

Read in an xls file outputted by MTA for FieldPro and give a graph of response variable by treatment number. The type of graph returned can be selected by the user.

Usage

1
response_trt_graph(filename, trialname, graphtype = "p", sheetnumber = 3, ...)

Arguments

filename

The XLS file from MTA that will be read in.

trialname

The name of the trial that the graph will be made from

graphtype

The type of plot that will be drawn: "p" for a scatterplot with an R squared value, "l" for a plot with just lines, "b" for both lines and points, "c" for lines with blank spaces where the points would be, "o" for lines going through the points, "h" for a histogram of the response variable, "s" for a step plot, "n" for no plot.

sheetnumber

The sheet number for the EVALUATION MEANS data. The standard output from MTA is the third sheet.

...

Arguments to be passed to methods in plot or hist functions, such as colors or size.

Value

A graph of the selected type given by the user is displayed, but no value is returned. If no plot type is selected, a scatterplot will be returned.

Author(s)

Christopher Landau

Examples

1
2
3
4
5
6
## Scatterplot of response variable by treatments
path1<-system.file("extdata", "YIELDALL_MTA_FLATFILE.xls", package = "fieldproanalysis")
response_trt_graph(path1,"US 101/10/01 002 01")

## Histogram of the response variables
response_trt_graph(path1,"US 101/10/01 002 01", graphtype = "h")

brentpm2/FIELD_PRO_ANALYSIS documentation built on May 7, 2019, 3:20 p.m.