plotImagetimes {growthPheno} | R Documentation |
Plots the position of a time within an interval against the interval for each cart
Description
Uses ggplot
to produce a plot of the time position within an interval
against the interval. For example, one might plot the hour of the day carts
are imaged against the days after planting (or some other number of
days after an event). A line is produced for each value of groupVariable
and the colour is varied according to the value of the colourVariable
.
Each Smarthouse
is plotted separately. It aids in checking
whether delays occurred in imaging the plants.
Usage
plotImagetimes(data, intervals = "Time.after.Planting..d.", timePositions = "Hour",
groupVariable = "Snapshot.ID.Tag", colourVariable = "Lane",
ggplotFuncs = NULL, printPlot = TRUE)
Arguments
data |
A |
intervals |
A |
timePositions |
A |
groupVariable |
A |
colourVariable |
A |
ggplotFuncs |
A |
printPlot |
A |
Value
An object of class "ggplot
", which can be plotted using print
.
Author(s)
Chris Brien
See Also
ggplot
, calcTimes
.
Examples
data(exampleData)
library(ggplot2)
longi.dat <- calcTimes(longi.dat, imageTimes = "Snapshot.Time.Stamp",
timePositions = "Hour")
plotImagetimes(data = longi.dat, intervals = "DAP", timePositions = "Hour",
ggplotFuncs=list(scale_colour_gradient(low="grey20", high="black"),
geom_line(aes(group=Snapshot.ID.Tag, colour=Lane))))