View source: R/glydraw-style.R
| glydraw_style | R Documentation |
glydraw_style() collects the rendering options shared by glydraw's
standalone drawings, grobs, ggplot2 layers, guides, and glycan scales.
Supply the result with style = to reuse a visual specification. Explicit
rendering arguments supplied to a drawing function override the style.
glydraw_style(
show_linkage = TRUE,
orient = c("H", "V"),
fuc_orient = c("flex", "up"),
red_end = "",
edge_linewidth = 0.8,
node_linewidth = 0.8,
node_size = 1,
colors = NULL
)
show_linkage |
Whether to show glycosidic linkage annotations. |
orient |
Glycan drawing orientation: |
fuc_orient |
Fuc-like triangle orientation: |
red_end |
Reducing-end annotation. Use |
edge_linewidth |
Linewidth of glycosidic linkages. |
node_linewidth |
Linewidth of node borders. |
node_size |
Multiplier for the default node size. |
colors |
Optional named character vector of monosaccharide fill-color overrides. |
A glydraw_style object.
vertical_style <- glydraw_style(orient = "V", show_linkage = FALSE)
draw_cartoon("Gal(b1-3)GalNAc(a1-", style = vertical_style)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.