Description Usage Arguments Details Value
Plots the fitted single-cell growth curves (fitted time-series data) of a numeric attribute for all cells in a division tree. The growth curves can be plotted per colony or generation or for the whole population. The average growth curve of each group is also computed and plotted separately.
1 2 3 4 5 |
DT |
The division tree, an object of class |
LT |
The corresponding lineage tree of the |
attr |
The name of the attribute in the |
unit |
The unit of |
model |
A character string naming the type of the fitted growth models to be plotted,
Parameters of the model must have already been estimated using |
grouped |
A character string naming the grouping method:
|
groups |
The IDs of the groups for which to create the plot, a vector of positive integer values.
This argument is ignored in case |
Ngroups |
Number of colonies in the movie (if |
attrC |
The name of the attribute in the |
unitC |
The unit of |
NC |
Number of colonies in the movie (if |
dur |
The time span in |
sizeL |
Size of explanatory legends, a non-zero positive numeric value.
The default value is |
save |
A logical value ( |
savePars |
A named list specifying the parameters of each generated image file.
This argument is ignored in case
|
For each group specified in groups
, two types of plots are generated.
The first plot depicts the single-cell growth curves of all cells that are included in the analysis,
as returned from get_cells
,
except for cells with NA
values in the attributes/parameters of the model
,
as estimated by add_attr_growth_fit_pars
.
By default, each single-cell growth curve is randomly colored.
The second plot depicts the average growth curve of the group, +/- one standard deviation.
When model = "lin"
, the following curves are drawn:
y = aMean * t + bMean
y = (aMean + aSD) * t + (bMean + bSD)
y = (aMean - aSD) * t + (bMean - bSD)
When model = "exp"
, the following curves are drawn:
y = y0Mean * ekMean * t
y = (y0Mean + y0SD) * e(kMean + kSD) * t
y = (y0Mean - y0SD) * e(kMean - kSD) * t
The parameters of these curves are computed based on the corresponding parameters of the single-cell growth curves.
See the Value field for more details.
Color of the area between the curves denotes the corresponding group.
In both types of plots, x-axis represents the time in hours in the range [0, dur]
.
Value 0
is considered to be the birth time of each cell.
The range of y-axis values is common among the plots of the same type and
is calculated as the range of the corresponding values of all specified groups (excluding the outliers).
When model = "lin"
, a dataframe with the following columns is returned:
group
is the ID of the group (a positive integer value)
or -2
in case grouped = "pop"
Ncells
is the number of cells, a positive integer value
aMean
is the mean of "<attr>_a"
(a non-zero positive numeric value in units of attr
per hour),
or NA
in case Ncells = 0
aSD
is the standard deviation of "<attr>_a"
(a non-zero positive numeric value in units of attr
per hour),
or NA
in case Ncells = 0
or Ncells = 1
bMean
is the mean of "<attr>_b"
(a positive numeric value in units of attr
)
or NA
in case Ncells = 0
bSD
is the standard deviation of "<attr>_b"
(a positive numeric value in units of attr
)
or NA
in case Ncells = 0
or Ncells = 1
When model = "exp"
, a dataframe with the following columns is returned:
group
is the ID of the group (a positive integer value)
or -2
in case grouped = "pop"
Ncells
is the number of cells, a positive integer value
kMean
is the mean of "<attr>_k"
(a non-zero positive numeric value in units of attr
per hour),
or NA
in case Ncells = 0
kSD
is the standard deviation of "<attr>_k"
(a non-zero positive numeric value in units of attr
per hour),
or NA
in case Ncells = 0
or Ncells = 1
y0Mean
is the mean of "<attr>_0"
(a non-zero positive numeric value in units of attr
)
or NA
in case Ncells = 0
y0SD
is the standard deviation of "<attr>_0"
(a non-zero positive numeric value in units of attr
)
or NA
in case Ncells = 0
or Ncells = 1
For groups with Ncells = 0
, no plot of first or second type is generated.
For groups with Ncells = 1
, no plot of second type is generated.
In case no cells exist, no plot is generated and NULL
is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.