overview_plot {overviewR} | R Documentation |
overview_plot
Description
This function plots a ggplot to visualize the distribution of scope objects across the time frame.
Usage
overview_plot(
dat,
id,
time,
xaxis = "Time frame",
yaxis = "Sample",
asc = TRUE,
color,
dot_size = 2
)
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 |
dot_size |
Option argument that defines the dot size (default is 2) |
Value
A ggplot figure that presents the sample information visually
Examples
data(toydata)
overview_plot(dat = toydata, id = ccode, time = year)
[Package overviewR version 0.0.13 Index]