Learn R Programming

vistime (version 0.8.0)

plot_ranges: Plot the ranges of a data frame

Description

Plot the ranges of a data frame

Usage

plot_ranges(data_orig, linewidth, show_labels, background_lines)

Arguments

data_orig

the data frame to be plotted (ranges + events)

linewidth

the width in pixel for the range lines

show_labels

boolean, show labels on events or not

background_lines

number of grey background lines to draw

Value

a list containing the plots for the groups in data

Examples

Run this code
# NOT RUN {
plot_ranges(data.frame(
  event = 1:2, start = as.POSIXct(c("2019-01-01", "2019-01-10")),
  end = as.POSIXct(c("2019-01-10", "2019-01-25")),
  group = "", tooltip = "", col = "green", fontcol = "black",
  subplot = 1, y = 1:2, labelPos = "center", label = 1:2
),
linewidth = 10, show_labels = TRUE, background_lines = 11
)
# }

Run the code above in your browser using DataLab