View source: R/plot-module-migration.R
plotAllTracks | R Documentation |
Visualizes the cells migration in a typical migration plot. Scales the cell's x- and y-coordinates such that all cell's migration paths start from the same position.
plotAllTracks( object, across = "condition", across_subset = NULL, relevel = NULL, time_subset = NULL, phase = NULL, n_cells = 100, color_by = across[1], linetype = "solid", linesize = 0.75, clrp = "milo", clrp_adjust = NULL, display_annotation = TRUE, set_seed = NULL, ..., verbose = TRUE ) plotRosePlot( object, across = "condition", across_subset = NULL, relevel = NULL, time_subset = NULL, phase = NULL, n_cells = 100, color_by = across[1], linetype = "solid", linesize = 0.75, clrp = "milo", clrp_adjust = NULL, display_annotation = TRUE, set_seed = NULL, ..., verbose = TRUE )
object |
A valid cypro object. |
across |
Character value, character vector or NULL (see details for more). Specifies the grouping variable of interest. Use |
across_subset |
Character vector, list of character vectors or NULL (see details for
more). Specifies the particular groups of interest the grouping variable specified in argument
If set to NULL all of them are chosen. You can prefix groups you are NOT interested in with a '-'. (Saves writing if there are more groups you are interested in than groups you are not interested in.) Use |
relevel |
Logical value. If set to TRUE the input order of |
phase |
Character or numeric. If character, the ordinal value referring to the phase of interest (e.g. 'first', 'second' etc.). referring to the phase of interest or 'all'. If numeric, the number referring to the phase. If set to NULL takes the phase denoted as default with Ignored if the experiment design contains only one phase. |
n_cells |
Numeric calue. Determines the number of cells that are randomly chosen from every group to be displayed. Useful to keep plots insightful and aesthetically pleasing. |
linetype |
Character value. Valid options are 'solid', 'twodash', 'longdash', 'dotted' and 'dotdash'. |
linesize |
Numeric value. Denotes the size of the lines drawn. |
clrp |
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
clrp_adjust |
Named character vector or NULL. If character, it adjusts the color palette that is used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group. |
display_annotation |
Logical. If set to TRUE the number of cells (input
for argument |
verbose |
Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
Argument across
can be a single character value or a character vector of
length two. If character vector, e.g. across = c('cell_line', 'condition')
,
argument across_subset
- if specified - should be a corresponding list:
across_subset = list(cell_line = c('GCL24', 'GCL38'), condition = c('Ctrl', 'chlorambucil'))
.
A ggplot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.