| designGGPlot | R Documentation |
Plots the labels in a grid of cells specified by
row.factors and column.factors. The cells can be coloured by the values of
the column specified by column.name and can be divided into facets by
specifying multiple row and or column factors.
designGGPlot(design, labels = NULL, label.size = NULL,
row.factors = "Rows", column.factors = "Columns",
scales.free = "free", facetstrips.switch = NULL,
facetstrips.placement = "inside",
cellfillcolour.column = NULL, colour.values = NULL,
cellalpha = 1, celllinetype = "solid", celllinesize = 0.5,
celllinecolour = "black", cellheight = 1, cellwidth = 1,
reverse.x = FALSE, reverse.y = TRUE, x.axis.position = "top",
xlab, ylab, title, labeller = label_both,
title.size = 15, axis.text.size = 15,
blocksequence = FALSE, blockdefinition = NULL,
blocklinecolour = "blue", blocklinesize = 2,
printPlot = TRUE, ggplotFuncs = NULL, ...)
design |
A |
labels |
A |
label.size |
A |
row.factors |
A |
column.factors |
A |
scales.free |
When plots are facetted, a |
facetstrips.switch |
When plots are facetted, the strip text are displayed on the
top and right of the plot by default. If |
facetstrips.placement |
A |
reverse.x |
A |
reverse.y |
A |
x.axis.position |
A |
cellfillcolour.column |
A |
colour.values |
A |
cellalpha |
A |
celllinetype |
A |
celllinesize |
A |
celllinecolour |
A |
cellheight |
A |
cellwidth |
A |
xlab |
|
ylab |
|
title |
Title for plot window. By default it is "Plot of labels". |
labeller |
A |
title.size |
A |
axis.text.size |
A |
blocksequence |
A |
blockdefinition |
A
Similarly, a single value for a column specifies a repetition of blocks of that size across the columns of the design, while several column values specifies a sequence of blocks across the columns of the size specified. |
blocklinecolour |
A See also the |
blocklinesize |
A |
printPlot |
A |
ggplotFuncs |
A |
... |
Other arguments that are passed down to the |
An object of class "ggplot", which can be plotted using print.
Chris Brien
designBlocksGGPlot, fac.combine in package dae,
designPlot.
#### Plot a randomized complete block design
Treatments <- factor(rep(1:6, times = 5))
RCBD.lay <- designRandomize(allocated = Treatments,
recipient = list(Blocks = 5, Units = 6),
nested.recipients = list(Units = "Blocks"),
seed = 74111)
designGGPlot(RCBD.lay, labels = "Treatments", label.size = 5,
row.factors = "Blocks", column.factors = "Units",
blockdefinition = cbind(1,5))
## Plot without labels
designGGPlot(RCBD.lay, cellfillcolour.column = "Treatments",
row.factors = "Blocks", column.factors = "Units",
colour.values = c("lightblue","lightcoral","lightgoldenrod",
"lightgreen","lightgrey", "lightpink"),
blockdefinition = cbind(1,6))
#### Plot a lattice square design
data(LatticeSquare_t49.des)
designGGPlot(LatticeSquare_t49.des, labels = "Lines", label.size = 5,
row.factors = c("Intervals", "Runs"), column.factors = "Times",
blockdefinition = cbind(7,7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.