designPlotlabels {dae} | R Documentation |
Plots labels on a two-way grid using ggplot2
Description
Plots the labels
in a grid specified by
grid.x
and grid.y
. The labels can be coloured by the values of
the column specified by column.name
.
Usage
designPlotlabels(data, labels, grid.x = "Columns", grid.y = "Rows",
colour.column=NULL, colour.values=NULL,
reverse.x = FALSE, reverse.y = TRUE,
xlab, ylab, title, printPlot = TRUE, ggplotFuncs = NULL, ...)
Arguments
data |
A |
labels |
A |
grid.x |
A |
grid.y |
A |
reverse.x |
A |
reverse.y |
A |
colour.column |
A |
colour.values |
A |
xlab |
|
ylab |
|
title |
Title for plot window. By default it is "Plot of labels". |
printPlot |
A |
ggplotFuncs |
A |
... |
Other arguments that are passed down to the |
Value
An object of class "ggplot
", which can be plotted using print
.
Author(s)
Chris Brien
See Also
fac.combine
in package dae, designPlot
.
Examples
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)
designPlotlabels(RCBD.lay, labels = "Treatments",
grid.x = "Units", grid.y = "Blocks",
colour.column = "Treatments", size = 5)