make_locuszoom | R Documentation |
Make a locuszoom plot. Details see http://locuszoom.org/.
make_locuszoom(metal, title, chr, color, shape, size, ylab_linebreak = FALSE)
metal |
(data.frame) input file with two column, rsID and p-value. See 'read_metal()' for more details. |
title |
(string) y-axis title. |
chr |
(string) chromosome. |
color |
(data.frame) The output from 'assign_color()'. |
shape |
(data.frame) Specification of the shape of each SNP. See example blow on how to generate this data.frame. |
size |
(data.frame) Specification of the size of each SNP. See example below on how to generate this data.frame. |
ylab_linebreak |
(boolean, optional) Whether to break the line of y-axis. If FALSE, the y-axis title and '-log10(p-value)' will be on the same line. Default: FALSE. |
# The data.frame `d1` comes from the example of `read_metal()`, # The data.frame `color` comes from the example of `assign_color()`. snp = 'rs9349379' shape = ifelse(merged$rsid == snp, 23, 21) names(shape) = merged$rsid size = ifelse(merged$rsid == snp, 3, 2) names(size) = merged$rsid chr = '6' make_locuszoom(d1, title = 'GWAS', chr, color, shape, size)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.