Description Usage Arguments Value Author(s) Examples
Create boxplots for a sequence of traits for each level of a grouping factor.
1 2 3 |
x |
A data frame containing at least the columns |
traits |
Charachter vector with the column names in |
factor |
Character string with the column name in |
checks |
(Optional) Charachter vector with the names of the checks in
the |
checks_factor |
(Optional) Charachter string with the column name in
|
plottype |
(Optional) Character string speciyfing which type of plot to
produce, should be either |
boxcolor |
(Optional) Character vector specifying the color(s) for the
boxplots. Default = |
stripcolor |
(Optional) Character vector specifying the color(s) for
the points in the stripplot. Default = |
checks.color |
(Optional) Character string specifying the color(s) for
the checks. Default = |
legend |
(Optional) Logical indicating whether a legend for the
|
trim.labels |
(Optional) Numeric value specifying how many characters
of the levels of |
... |
Extra graphical parameters for the plot-function. |
Plot is submitted to the graphical device.
Ruud Derijcker, Katrien Baert
1 2 3 4 5 6 7 8 9 10 11 | data(exampleCV)
exampleCV$CHECK <- sample(c(rep(0, 300),
sample(c(1:4), nrow(exampleCV), 20)), 100)
exampleCV$EXPT <- exampleCV$BLOCK <- NA
colnames(exampleCV)[colnames(exampleCV)== "trait"] <- "dummy"
exampleCV$dummy <- abs(exampleCV$dummy)*100
trait <- "dummy"
boxplots_with_checks(x=exampleCV, traits="dummy", factor="LOCATION",
checks=exampleCV$GERMPLASM[exampleCV$CHECK!=0],
checks_factor = "GERMPLASM", checks.color = "grey",
boxcolor="blue", main="Yield by location\n(all checks)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.