title: Suggestions on how to build an actogram in R?
body: <p>I'm studying activity patterns in animals, and I have 4 months worth of activity measures taken every 5 minutes for multiple individuals. What I would love is to build an actogram from this data as seen in <a href="http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0114143" rel="nofollow">this article</a>. Each horizontal line of the actogram represents a day, and the colour varies with the intensity of activity. </p>
  
  <p>Apparently there is an actogram package for R, but I can't get it to load after trying it on multiple computers. With this:</p>
  
  <pre><code>install.packages("actogram", repos="http://R-Forge.R-project.org")
  </code></pre>
  
  <p>I get back</p>
  
  <blockquote>
    <p>install.packages("actogram", repos="http://R-Forge.R-project.org")
    Warning in install.packages :
      cannot open: HTTP status was '404 Not Found'
    Warning in install.packages :
      cannot open: HTTP status was '404 Not Found'
    Warning in install.packages :
      unable to access index for repository <a href="http://R-Forge.R-project.org/bin/macosx/contrib/3.1" rel="nofollow">http://R-Forge.R-project.org/bin/macosx/contrib/3.1</a></p>
    
    <p>package ‘actogram’ is available as a source package but not as a binary</p>
    
    <p>Warning in install.packages :
      package ‘actogram’ is not available (for R version 3.1.2)</p>
  </blockquote>
  
  <p>My question is: is there a way to build an actogram in R without using this package? I'm relatively new to R and not very computer-savvy, but if it's possible, I'm willing to learn! I just can't find a whole lot of information about this type of graph or how to go about constructing one.</p>
  
  <p>Basically, I just need to build a row of 24 coloured squares, each square representing an hourly mean, and each colour corresponding to a defined activity range. But I need to keep stacking these rows (each representing a day) on top of each other...</p>
  
  <p>Thanks!!</p>