Plot timeseries as heatmap
问题 I have a data frame with timestamps and values (a month with values approximately every 5min). Now I want to have plot with the day on the x-axis, the time of day on the y-axis and the value as the color. Best would be if I can control the binning on the y-axis (5min, 10min, 15min.. with the value as the mean for each bin). I am experimenting with ggplot2, but I can't get a reasonable result. p_heat <- ggplot(data = data, aes(x = days(timestamp), y = minutes(timestamp) + hours(timestamp) * 60