View source: R/ggplot_leave_NA_time.R
leave_NAtime_plot | R Documentation |
Function to plot data with x-axis split into facets between longer periods without data
leave_NAtime_plot(
y = "CO2",
col = "tiefe",
group = "Pumpstufe",
data,
timestep = 10,
ylab = "CO2 [ppm]",
plot = T,
adj_grob_size = T,
...,
geom = "line"
)
y |
name of the column that should be ploted on y-axis as character |
col |
name of the column that should be used for the colour as character |
group |
name of the column that should be used for finding NA times as character the plot will automatically be split into different facets if the group column is NA for a defined timestep |
data |
data that should be plotted |
timestep |
timestep in minutes that is used to split plot into facets without longer gaps on the time axis |
ylab |
label for y-axis |
plot |
logical indicating whether output is a ggplot object (T) or a data.frame with the extra column |
adj_grob_size |
logical whether grob size should be adjusted |
... |
other parameters that should be parsed to |
leave_NAtime_plot(data=data,group="CO2",plot=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.