I have downloaded all the files of this data set (i.e. .bam, .bam.bai, .narrowPeak, .fastq and .bigWig) and I would now like to produce the first of the shown sequence logos. How exactly can I do that in R?
I have used bits and piece of the seqLogo package in my own scripts. To use this R package to make sequence logos with your data, I suspect you would need to:
Get the sequence data of the motif associated with your ChIP-seq hits from one of your datasets, or use coordinate data with other databases (UCSC Genome Browser, for instance) to get sequence data
Feed the PWM into seqLogo and make the sequence logo per documentation
Another option is to contact the Factorbook people and ask for the exact recipe used to recapitulate the sequence logos on their page.
A third option, once you have the PWM, is to use the Python-based WebLogo kit to make your own sequence logos on the command line. The logos you see on Factorbook look like they were made with WebLogo, for instance. (Though, on closer examination, it looks like they were built with the sequence logo code in MEME.)