parseImage: This function parses a HE image to use as the background for...

Description Usage Arguments Value Examples

View source: R/parseImage.R

Description

This function parses a HE image to use as the background for plots

Usage

1
parseImage(imgFile, imgType = "jpg")

Arguments

imgFile

Path to the image file

imgType

Type of image options jpg (default), png

Value

A rasterized grob

Examples

1
2
3
imgFile <- file.path(system.file(package = "Spaniel"),
                    "extdata/outs/spatial/tissue_lowres_image.png")
img <- parseImage(imgFile, imgType = "png")

RachelQueen1/Spaniel documentation built on May 20, 2021, 5:21 p.m.