Description Usage Arguments Details Value Examples
Plots cells in their position on a plate, coloured by phenotype data or feature expression.
1 2 3 |
object |
an |
plate_position |
optional character vector providing a position on the plate for each cell (e.g. A01, B12, etc, where letter indicates row and number indicates column). Specifying this argument overrides any plate position information extracted from the SCESet object. |
colour_by |
character string defining the column of |
x_position |
numeric vector providing x-axis positions for the cells
(ignored if |
y_position |
numeric vector providing y-axis positions for the cells
(ignored if |
exprs_values |
a string specifying the expression values to use for
colouring the points, if |
theme_size |
numeric scalar giving default font size for plotting theme (default is 10). |
legend |
character, specifying how the legend(s) be shown? Default is
|
This function expects plate positions to be given in a charcter
format where a letter indicates the row on the plate and a numeric value
indicates the column. So each cell has a plate position such as "A01", "B12",
"K24" and so on. From these plate positions, the row is extracted as the
letter, and the column as the numeric part. If object$plate_position
or the plate_position
argument are used to define plate positions,
then positions should be provided in this format. Alternatively, numeric
values to be used as x- and y-coordinates by supplying both the
x_position
and y_position
arguments to the function.
A ggplot object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## prepare data
data("sc_example_counts")
data("sc_example_cell_info")
pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)
example_sceset <- calculateQCMetrics(example_sceset)
## define plate positions
example_sceset$plate_position <- paste0(
rep(LETTERS[1:5], each = 8), rep(formatC(1:8, width = 2, flag = "0"), 5))
## plot plate positions
plotPlatePosition(example_sceset, colour_by = "Mutation_Status")
plotPlatePosition(example_sceset, colour_by = "Gene_0004")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.