manhattan | R Documentation |
manhattan create a Manhanttan plot
manhattan(data, chr, position, y, title = "Manhattan plot", xlab = "Chromosomes", ylab = "P-Value", sep = 0.02)
data |
[data.frame]: A 'data.frame' which include some columns: chromosome, position and pvalues. |
chr |
[character]: Name of the 'chr' (chromosome) column in 'data'. |
position |
[character]: Name of the 'position' column in 'data'. |
y |
[character]: Name of the 'p-value' column in 'data' (or anything you want to plot with a manhattan plot). |
title |
[character]: The text for the title. |
xlab |
[character]: The text for the x axis. |
ylab |
[character]: The text for the y axis. |
sep |
[numeric]: Width of the space between bars. |
A Manhattan plot in ggplot2 format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.