ggfanplot | R Documentation |
Add "fanplot" to chromosome. "fanplot" means repel annotation lines linking between original positions and annotations, named after the fan made by paper due to their similarity in appearance.
ggfanplot(
p,
plot_type = c("text", "shape", "textshape"),
plot_direction = c("vertical", "horizontal"),
fan_start = 0.8,
fan_end = 3,
tip_length = 0.2,
ann_data = NULL,
htext_direction = c("right", "left"),
replusive = 1e+06,
text_size = 1,
text_color = "black",
shape_size = 1,
shape_color = "skyblue",
shape_repel = 0.25,
...
)
p |
a ggplot object |
plot_type |
type of fanplot annotation, one of "text", "shape", and "textshape" |
plot_direction |
direction of chromosome, one of "vertical" and "horizontal" |
fan_start |
"fan" start position |
fan_end |
"fan" end position |
tip_length |
"fan" tip length, both sides are the same |
ann_data |
a data frame containing annotation information, colnames should be set as following:
|
htext_direction |
from which side to read the text when chromosomes lying down (i.e. |
replusive |
replusive of texts or shapes, set according to chr length |
text_size |
global text size |
text_color |
global text color |
shape_size |
global shape size |
shape_color |
global shape color |
shape_repel |
shape repulsive from fan end, absolute length against x/y axis |
... |
currently ignored |
Yujie Liu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.