Skip to contents

Plots the distribution of cells in a growth simulation.

Usage

plot_cells(
  object,
  xlim = NULL,
  ylim = NULL,
  iter = NULL,
  scalebar.color = "white",
  background.color = "black",
  incl.timestamp = TRUE,
  legend.position = "bottom",
  plot.title = NULL
)

Arguments

object

S4-object of type growthSimulation.

xlim

Numeric vector of length 2, specifying the x-range to be displayed.

ylim

Numeric vector of length 2, specifying the y-range to be displayed.

iter

Positive integer number of the simulation step/iteration to plot the cell distribution. If NULL, current distribution is displayed.

scalebar.color

Color of the scale bar and its annotation. Default: "white".

background.color

Color of the growth environment background.

incl.timestamp

Boolean indicating whether a time stamp should be included in the plot. Default: TRUE

legend.position

The position of legends ("none", "left", "right", "bottom", "top", or two-element numeric vector), as handled in ggplot2. Default: "bottom"

plot.title

An optional title written on top of the plot.

Value

A ggplot object.