gghelix | R Documentation |
Plots nucleltide secondary structure as helices in arc diagram
gghelix(helix_data, color_by = "length", overlap = FALSE)
helix_data |
a data frame. The file of nucleltide secondary structure and then read by readSSfile(). |
color_by |
generate colors for helices by various rules, including integer counts and value ranges one of "length" and "value" |
overlap |
Logicals. If TRUE, two structures data called predict and known must be given(eg:heilx_data = list(known = data1, predicted = data2)), plots the predicted helices that are known on top, predicted helices that are not known on the bottom, and finally plots unpredicted helices on top in black. |
ggplot object
Lang Zhou
RF03120 <- system.file("extdata/Rfam/RF03120_SS.txt", package="ggmsa")
helix_data <- readSSfile(RF03120, type = "Vienna")
gghelix(helix_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.