| autoplot.lfq_fit | R Documentation |
Plot lineage frequency model results
## S3 method for class 'lfq_fit'
autoplot(
object,
type = c("frequency", "advantage", "trajectory", "residuals"),
generation_time = NULL,
...
)
object |
An |
type |
Plot type: |
generation_time |
Required when |
... |
Ignored. |
A ggplot object.
sim <- simulate_dynamics(n_lineages = 3,
advantages = c("A" = 1.2, "B" = 0.8), seed = 1)
fit <- fit_model(sim)
autoplot(fit)
autoplot(fit, type = "advantage", generation_time = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.