Good afternoon. I want to plot the distribution of my ChIP seq peaks from TSS.
So I want to make a picture like that.....
Hence, I tried to use the density function which looks like that....
d <- density(lena$distance.to.gene)
lena$distance.to.gene is a column from my data frame which has the distances from the TSS.
Hence, when I am using the density function like i descibed it above it gives me a graph which looks like a gausian distribution.
What i want to change is the resolution of the density of the peaks. For example to have them every 100bp or every 200 bp.
However from the manual
?density it is not clear to me which option should I use to set this criteria.
could you please share your thoughts with me?
Moreover, do you have any other suggestions on how to plot the graph that i want to make?
thank you in advance
best regards Lena