R/plot_hourly_pat.R
plot_hourly_pat.Rd
This is used within plot_flex_index()
and workpatterns_rank()
.
plot_hourly_pat(
data,
start_hour,
end_hour,
legend,
legend_label,
legend_text = "Observed activity",
rows,
title,
subtitle,
caption,
ylab = paste("Top", rows, "activity patterns")
)
Data frame containing three columns:
patternRank
Hours
Freq
Numeric value to specify expected start hour.
Numeric value to specify expected end hour.
Data frame containing the columns:
patternRank
Any column to be used in the grey label box, supplied to legend_label
String specifying column to display in the grey label box
String to be used in the bottom legend label.
Number of rows to show in plot.
String to specify plot title.
String to specify plot subtitle.
String to specify plot caption.
String to specify plot y-axis label.