Skip to contents

This function will plot time of events on a 24 hour clock to show which events took place at what times. The hands are colored by a qualitative (factor) vector.

Usage

clock_chart_qlt(data, time, crit)

Arguments

data

A data frame

time

Time in 24 hours. The allowed time formats for these family of charts are HH:MM:SS, HH:MM or even H:M (such as 12;30:09 or 9:3).

crit

The qualitative vector by which hands will be colored.

Details

Change the title, subtitle or the caption of the plot with ggplot2::labs(). Change the legend title by adding ggplot2::labs(color = "TITLE"). Add or modify legend by theme(legend.position = "POSITION"); the valid postion names in ggplot2 are top, bottom, right, and left, excluding more complex options.

See also

clock_chart_col() for coloring by a numeric variable, clock_chart_qnt() for coloring and modifying length by a numeric variable, clock_chart_len() for modifying length by a numeric variable, clock_chart() for the simplest clock chart

Examples

# A plot showing sms receiving times based on
# criteria (type/sender/invoked)
clock_chart_qlt(smsclock, time = time, crit = sender)+
ggplot2::labs(color = "Sender", title = "SMS's Received throughout th Day")