scalefun | R Documentation |
Scale the upstream/downstream regions of a coverage matrix to a certain number of columns
scalefun(df, cols = c(0, 100, 300, 700), b = 100, a = 100)
df |
data.frame object of a single coverage matrix |
cols |
numeric vector of length 4 indicating landmark columns (start=0, end of upstream region, end of main region, ncol(df)) |
b |
numeric indicating the number of columns the upstream region (cols[1]-cols[2]) should be scaled down to. Default=100. |
a |
numeric indicating the number of columns the downstream region (cols[3]-cols[4]) should be scaled down to. Default=100. |
Data.frame of a coverage matrix with upstream and downstream regions scaled down (i.e. reduced columns) for clearer plotting
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.