Traj: Constructor for the S4 class Traj that represents...

Description Usage Arguments Examples

Description

Traj builds a Traj object.

Usage

1
2
3
4
Traj(trajectory = factor(), frame = integer(), time = numeric(),
  time_unit = character(), x = numeric(), y = numeric(),
  dim_x = integer(), dim_y = integer(), pixel_size = numeric(),
  pixel_unit = character(), ...)

Arguments

trajectory

A vector of unique trajectory identifiers.

frame

A vector of integers corresponding to the image frame of each data point.

time

An integer corresponding to time interval between frames.

time_unit

Name of the unit of time (e.g "second", "s", "min").

x

A numeric vector corresponding to the 'x' coordinates of each data point.

y

A numeric vector corresponding to the 'y' coordinates of each data point.

dim_x

An integer representing the image width (usually in pixels)

dim_y

An integer representing the image height (usually in pixels)

pixel_size

An integer representing the pixel size (usually in microns or nanometers)

pixel_unit

Character(s) for the unit of pixel (e.g. "nanometer", "nm", "micrometer").

...

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(coordinates)
traj <- Traj(trajectory = coordinates$Trajectory,
frame = coordinates$Frame,
time = 0.186,
time_unit = "s",
x = coordinates$x,
y = coordinates$y,
dim_x = 512,
dim_y = 512,
pixel_size = 80.0886,
pixel_unit = "nanometer")

MaxLev/CloseEnough documentation built on May 9, 2019, 2:19 a.m.