plotImagetimes | R Documentation |
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.
plotImagetimes(data, intervals = "Time.after.Planting..d.", timePositions = "Hour",
groupVariable = "Snapshot.ID.Tag", colourVariable = "Lane",
ggplotFuncs = NULL, printPlot = TRUE)
data |
A |
intervals |
A |
timePositions |
A |
groupVariable |
A |
colourVariable |
A |
ggplotFuncs |
A |
printPlot |
A |
An object of class "ggplot
", which can be plotted using print
.
Chris Brien
ggplot
, calcTimes
.
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))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.