knitr::opts_chunk$set(collapse=TRUE, comment="##", fig.retina=1, fig.height=6, fig.width=8)
library(ggplot2)
library(beadplot)
ggplot2::ggplot(basic_data, ggplot2::aes(dist, y, segment_id = segment_id)) +
  stat_string(segments = basic_segments) +
  stat_bead(segments = basic_segments)


alexwhan/beadplot documentation built on May 10, 2019, 8:58 a.m.