Learn R Programming

tlsR (version 0.1.2)

toy_ldata: Toy multiplexed imaging data for examples

Description

A small synthetic dataset mimicking multiplexed tissue imaging data. It contains one sample named "ToySample" with columns required by tlsR functions.

Usage

toy_ldata

Arguments

Format

A named list with one element:

ToySample

A data frame with columns:

  • x: x-coordinate in microns

  • y: y-coordinate in microns

  • coarse_phen_vec: Cell phenotype ("B cells", "T cells", or "Other")

  • row_index: Integer row index (1 to nrow)

  • cflag: Integer flag column (0 for all cells)

Examples

Run this code
data(toy_ldata)
str(toy_ldata[["ToySample"]])
plot(toy_ldata[["ToySample"]]$x, toy_ldata[["ToySample"]]$y,
     col = as.factor(toy_ldata[["ToySample"]]$coarse_phen_vec),
     pch = 19, cex = 0.5, main = "Toy sample cells")

Run the code above in your browser using DataLab