plot_allelecount_vs_origintime: Plot allele count versus origin time

Description Usage Arguments Value Examples

Description

Plot allele count versus origin time

Usage

1
2
3
plot_allelecount_vs_origintime(file_or_dataframe, log = FALSE,
  colour_by = "BirthRate", palette = NA, discrete = FALSE,
  print_plot = TRUE)

Arguments

file_or_dataframe

file or data frame containing columns "Descendants" (or "AlleleCount" in older versions), "OriginTime and "BirthRate"

log

if TRUE then y-axis will be log-transformed (default FALSE)

colour_by

character containing name of column by which to colour the plot

palette

either a brewer palette or a vector of colours (if colour_by is categorical)

discrete

whether to use a discrete or continuous colour scale (default FALSE)

print_plot

whether to print the plot (otherwise the function returns a plot object)

Value

plot object, or plot displyed on screen

Examples

1
2
3
4
5
plot_allelecount_vs_origintime(system.file("extdata", "output_genotype_properties.dat", 
package = "demonanalysis", mustWork = TRUE))
plot_allelecount_vs_origintime(system.file("extdata", "output_genotype_properties.dat", 
package = "demonanalysis", mustWork = TRUE), colour_by = "DriverMutations", 
palette = c("black", "blue", "grey", "red"), discrete = TRUE)

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.