Noodle/spaghetti plot

plotNoodle2D(
  objTS,
  xfac = 1,
  yfac = 1,
  tfreq = 1,
  pos = 1L,
  style = c("line", "point", "both"),
  size = 0.25,
  colpal = c("#4E79A7", "#A0CBE8", "#F28E2B", "#FFBE7D", "#59A14F", "#8CD17D", "#B6992D",
    "#F1CE63", "#499894", "#86BCB6", "#E15759", "#FF9D9A", "#79706E", "#BAB0AC",
    "#D37295", "#FABFD2", "#B07AA1", "#D4A6C8", "#9D7660", "#D7B5A6")
)

# S3 method for arcosTS
plotNoodle2D(
  objTS,
  xfac = 1,
  yfac = 1,
  tfreq = 1,
  pos = 1L,
  style = c("line", "point", "both"),
  size = 0.25,
  colpal = c("#4E79A7", "#A0CBE8", "#F28E2B", "#FFBE7D", "#59A14F", "#8CD17D", "#B6992D",
    "#F1CE63", "#499894", "#86BCB6", "#E15759", "#FF9D9A", "#79706E", "#BAB0AC",
    "#D37295", "#FABFD2", "#B07AA1", "#D4A6C8", "#9D7660", "#D7B5A6")
)

Arguments

objTS

an arcosTS object.

xfac

a numeric, multiplication factor for the x-axis; default 1.

yfac

a numeric, multiplication factor for the y-axis; default 1.

tfreq

a numeric, frequency of the temporal column; default 1.

pos

an integer, index of the coordinate to plot in the position vector; default 1L.

style

one of 'line', 'point', 'both'; determines how collective events are plotted; as lines, points or both. Note that lines can only visualise tracks that span at least 2 frames. Choose 'points' or 'both' for events that consist of many 1-frame tracks.

size

a numeric, determines thickness and size of lines and plots; default 0.25.

colpal

a vector with colours in hex format, default colours from the Tableau 20 palette.

Value

a ggplot2 object.

Details

Visualise active objects/cells when they participate in collective events. The plot projects one of the spatial dimensions and time on a 2D space.

Examples

cat("no examples")
#> no examples