ggpLayerImage: Add histology image

View source: R/g.R

ggpLayerImageR Documentation

Add histology image

Description

Creates ggplot2 layer with the histology image as a raster annotation.

Usage

ggpLayerImage(object = "object")

Arguments

object

An object of class spata2.

Value

ggpLayer*()-functions return lists of ggproto objects that can be added to ggplots via the + operator. In most of the cases they are supposed to be added to plots created with the plotSurface*() family.

Note

The returned list contains an additional ggplot2::geom_point() layer with invisible barcode spots coordinates (alpha = 0) to enable the image plotting.


kueckelj/SPATA2 documentation built on March 16, 2024, 10:25 a.m.