library(glydraw)
glycan <- "Gal(b1-3)GalNAc(a1-"
draw_cartoon_sketch(glycan, seed = 1)
You can now give glycan cartoons a hand-drawn look with draw_cartoon_sketch(). Set a seed when you want the sketch strokes to be reproducible.
Cartoon appearance is configured through reusable style objects. Tune options such as node_size, edge_linewidth, font_family, colors, and red_end with style_glydraw(), or use the style_glygen(), style_snfg(), and style_glycoworkbench() presets. The same styles work with draw_cartoon(), draw_cartoon_sketch(), geom_glycan(), glycan scales and guides, heatmap annotations, and export_cartoons().
You can now plot biosynthesis networks by simply calling plot or ggplot2::autoplot() now.