PlotClusterImage: PlotClusterImage. Plot a segmentation image with the...

Description Usage Arguments Value

View source: R/librMSIdata.R

Description

PlotClusterImage. Plot a segmentation image with the user-given clusters.

Usage

1
2
3
4
5
6
7
8
9
PlotClusterImage(
  posMat,
  clusters,
  rotate = 0,
  pixel_size_um = 100,
  labels_x = NULL,
  labels_y = NULL,
  labels_text = NULL
)

Arguments

posMat

a two columns matrix where first column ara the x coodrinates of values and second column the y coordinates.

clusters

a vector with integer number according the cluster of each pixel.

rotate

rotation to apply.

pixel_size_um

the pixel resolution in um.

labels_x

x coordinates of text labels optionally overlaid to the plot.

labels_y

y coordinates of text labels optionally overlaid to the plot.

labels_text

text labels optionally overlaid to the plot.

Value

a vector with the used color for each cluster sorted according clustering numering in assending order.


prafols/rMSI documentation built on Dec. 12, 2021, 7:29 p.m.