This function plots a ggplot to visualize the distribution of scope objects across the time frame.

overview_plot(
  dat,
  id,
  time,
  xaxis = "Time frame",
  yaxis = "Sample",
  asc = TRUE,
  color
)

Arguments

dat

Your data set

id

Your scope (e.g., country codes or individual IDs). If the id variable contains NAs, they will not be included in the plot.

time

Your time (e.g., time periods given by years, months, ...)

xaxis

Label of the x axis ("Time frame" is default)

yaxis

Label of the y axis ("Sample" is default)

asc

Sorting the y axis in ascending order ("TRUE" is default)

color

Optional argument that defines the color

Value

A ggplot figure that presents the sample information visually

Examples

data(toydata) overview_plot(dat = toydata, id = ccode, time = year)