R-based Analysis of Chromatin Structure