Description Usage Arguments Details Value Examples
View source: R/PlotNetLogoData.R
Generates a streamgraph plot displaying the abundance of each unique barcode lineage as a proportion of the population, over time, in a Pheno-Evo experiment. At the initiation of the experiment, each founding cell is given a unique barcode. A barcode lineage consists of a founding cell and all its descendants. Over time, especially with high population turnover, some barcodes go extinct. This plot shows barcodes as different colors, with their proportional abundance as their width along the y-axis, and time on the x-axis.
1 | barcode.timecourse(NLdata, runnum)
|
NLdata |
The full dataframe containing data from all BehaviorSpace experiments at all timepoints, imported from NetLogo. |
runnum |
The run number of the experiment of interest. |
There is not a unique color for each barcode. This plot uses a 12-color palette that is repeated several times to cover all the barcodes. However, each lineage "stream" is bordered by a black line, so if two lineages that happen to have the same color end up adjacent, they can be distinguished by the border between them.
A ggplot object using [ggTimeSeries::stat_steamgraph()].
1 2 | data(PhenoEvoData_4)
barcode.timecourse(PhenoEvoData_run4, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.