Circular histogram
The circular histogram is a visual representation of the timestamps of events. It can be used to analyze a person's typical behavior. The dataset timestamps
contains 25 timestamps of transactions made by Mr. Cooper. You're going to estimate the periodic mean and plot the histogram. Keep an eye on the visualizations to spot anything out of the ordinary!
The dataset timestamps
has been loaded in your workspace, as well as the lubridate
, circular
and ggplot
packages.
This exercise is part of the course
Fraud Detection in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Convert the plain text to hours
timestamps_hrs <- as.numeric(___(___)) / ___