Description Usage Arguments Value Author(s) Examples
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.
1 | response_trt_graph(filename, trialname, graphtype = "p", sheetnumber = 3, ...)
|
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. |
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.
Christopher Landau
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.