longiPlot {imageData} | R Documentation |
Plots longitudinal data from a Lemna Tec Scananalyzer
Description
Produce profile or longitudinal plots of the data from a Lemna Tec
Scananalyzer using ggplot
. A line is drawn for the data for
each Snapshot.ID.Tag
and the plot can be facetted so that a
grid of plots is produced.
Usage
longiPlot(data, x = "xDays+44.5", response = "Area", individuals="Snapshot.ID.Tag",
x.title = "Days", y.title = "Area (1000 pixels)", title = NULL,
facet.x = "Treatment.1", facet.y = "Smarthouse", labeller = NULL,
colour = "black", colour.column=NULL, colour.values=NULL,
alpha = 0.1, ggplotFuncs = NULL, printPlot = TRUE)
Arguments
data |
A |
x |
A |
response |
A |
individuals |
A |
x.title |
Title for the x-axis. |
y.title |
Title for the y-axis. |
title |
Title for the plot. |
facet.x |
A |
facet.y |
A |
labeller |
A |
colour |
A |
colour.column |
A |
colour.values |
A |
alpha |
A |
ggplotFuncs |
A |
printPlot |
A |
Value
An object of class "ggplot
", which can be plotted using
print
.
Author(s)
Chris Brien
See Also
Examples
data(exampleData)
longiPlot(data = longi.dat, response = "Area.smooth")
plt <- longiPlot(data = longi.dat, response = "Area.smooth", x.title = "DAP",
y.title = "Area.smooth", x="xDays+35.42857143", printPlot=FALSE)
plt <- plt + ggplot2::geom_vline(xintercept=29, linetype="longdash", size=1) +
ggplot2::scale_x_continuous(breaks=seq(28, 42, by=2)) +
ggplot2::scale_y_continuous(limits=c(0,750))
print(plt)
longiPlot(data = longi.dat, response = "Area.smooth", x.title = "DAP",
y.title = "Area.smooth", x="xDays+35.42857143",
ggplotFuncs = list(ggplot2::geom_vline(xintercept=29, linetype="longdash",
size=1),
ggplot2::scale_x_continuous(breaks=seq(28, 42, by=2)),
ggplot2::scale_y_continuous(limits=c(0,750))))