VisualizeCntr {cellmigRation}R Documentation

Visualize Centroids

Description

Annotates centroids over an image

Usage

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

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)



[Package cellmigRation version 1.2.0 Index]