I have been given a challenging problem and was hoping for some recommendations.
I have activity data that I would like to display graphically and am looking for a package or program that could be used to solve my problem (preferably R).
The data is count of movements (Activity) collected hourly (Time of day) for 3 weeks (Calendar Date) or more with associated variables (Food/Vegetation).
Typically, as Ive been told the data can be processed and graphed in a program called Clocklab that is a Matlab product. However, the added complication is the desire to plot this data according to a classification of feeding groups. I was trying to find an equitable program/package in R for this but have come up short.
What the data looks like is simply:
Activity time of day Food type Calendar Date
0 01:00 B 03/24/2007
13 02:00 --- 03/24/2007
0 03:00 B 03/24/2007
0 04:00 B 03/24/2007
: : : :
1246 18:00 C 03/24/2007
3423 19:00 C 03/24/2007
: : : :
0 00:00 --- 03/25/2007
This data is circadian, circular, activity budgeting and I would like to have a graph that may be 3-D in nature that will show the diet selection and how much activity is associated with that diet plotted over time for multiple days/weeks. I would do this by individual and then at a population level. Ive a link to the program and example plot of what is typically produced by the program Clocklab.
Absent real data, this is the best I can come up with. No special packages required, just ggplot2 and plyr:
I just coded the hours of the day as integers 0-23, and simply grabbed some random values for
Activitycounts. But this seems like it’s generally what you’re after.Edit
A few more options based on comments:
Options one using faceting:
Option two using color (i.e. fill):