R version of desired BigWigViews function