Create a {ggplot2} plot of a plasmid in polar coordinates. Extracts the features as a data.frame from the plasmid and uses these to construct arrows that are added to the plot.

plot_plasmid(plasmid, name = "Plasmid Name", label_wrap = 20)

Arguments

plasmid

A list of class 'plasmid' created through read_gb().

name

Name of the plasmid, to be shown in the center.

label_wrap

Passed to stringr::str_wrap() to wrap the long labels.

Value

A ggplot object.