Create a scatter plot of two genes before and after MAGIC.
Usage
plot_magic_genes(
data,
magic_result,
gene_x,
gene_y,
gene_color = NULL,
point_size = 1
)
Arguments
- data
Original data matrix.
- magic_result
MAGIC result object.
- gene_x
Gene for x-axis.
- gene_y
Gene for y-axis.
- gene_color
Gene for coloring (optional).
- point_size
Point size. Default is 1.
Value
A ggplot object or plots using base R.
Examples
if (FALSE) { # \dontrun{
data(magic_testdata)
result <- magic(magic_testdata, t = 3)
plot_magic_genes(magic_testdata, result, 1, 2)
} # }