# using the toy example of the singleCellHaystack package
# define a logical matrix with detection of each gene (rows) in each cell (columns)
dat.detection <- dat.expression > 1
# various was of plotting gene expression patterns
plot_gene_haystack(dat.tsne, expression=dat.expression, gene="gene_242",
detection = dat.detection, high.resolution = TRUE)
plot_gene_haystack(dat.tsne, expression=dat.expression, gene="gene_242",
detection = dat.detection, high.resolution = TRUE, point.size = .1)
Run the code above in your browser using DataLab