VisualizeCntr: Visualize Centroids

Description Usage Arguments Value Author(s) References Examples

View source: R/all_functions_v8.R

Description

Annotates centroids over an image

Usage

1
2
3
4
5
6
7
8
9
VisualizeCntr(
  centroids,
  width_px,
  height_px,
  pnt.cex = 1.2,
  txt.cex = 0.9,
  offset = 0.18,
  col = "red2"
)

Arguments

centroids

centroid data.frame

width_px

width of the image in pixels

height_px

height of the image in pixels

pnt.cex

cex of the point (circle) drawn around each cell

txt.cex

cex of the text used to annotate the image

offset

offset for the text annotations

col

color of the points, e.g. "red2"

Value

None

Author(s)

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/cellmigration/ https://www.mathworks.com/matlabcentral/fileexchange/60349-fasttracks

Examples

1
2
3
4
5
x1 <- data.frame(
    row = c(50, 80, 20, 65, 99),
    col = c(15, 25, 50, 65, 86))
plot(2, 2, xlim = c(0,1), ylim = c(0,1), xlab = "", ylab = "", las = 2)
cellmigRation:::VisualizeCntr(x1, width_px = 100, height_px = 100)

ocbe-uio/CellMigRation documentation built on Dec. 26, 2021, 10:19 p.m.