ggideogram | R Documentation |
Plot ideogram and annotations on chromosome. Annotations can be text (with different color/size), point (with different shape/size), or lines (i.e. values for each position).
ggideogram(
karyotype_info,
gff_file = NULL,
slide_window = 1e+05,
plot_direction = c("vertical", "horizontal"),
chrom_display = c("gene_density", "border_only"),
density_color = c("skyblue", "red"),
circ_ratio = NULL,
ann_type = c("none", "text", "shape", "textshape", "line", "multiline", "textline",
"shapeline", "textshapeline"),
ann_data = NULL,
ggfanplot_args = list(htext_direction = c("right", "left"), replusive = 1e+06,
text_size = 1, text_color = "black", shape_size = 1, shape_color = "skyblue",
shape_repel = 0.25),
ann_line_args = list(size = 0.4, color = "black", linetype = "solid")
)
karyotype_info |
tab-separated file (or a data frame) containing karyotype information, with first column being "Chr", second being "Start", third being "End". File should NOT have header. |
gff_file |
GFF file, used only when |
slide_window |
length of each slide window, defaut 100kb |
plot_direction |
direction of chromosome, one of "vertical" and "horizontal" |
chrom_display |
method to display chromosome, one of "gene_density" and "border_only" |
density_color |
when |
circ_ratio |
ratio to make chromosome endtip round, where x and y scale are not the same, change according to plot size |
ann_type |
type of annotation added to chromosome plot, one of "none", "text", "shape", "textshape", "line", "multiline", "textline", "shapeline", and "textshapeline" |
ann_data |
a data frame containing annotation information, colnames should be set as following:
|
ggfanplot_args |
args used in |
ann_line_args |
args used in |
Yujie Liu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.