When plotting plasmids from dataframes directly instead of gbk files, plasmapR assumes that the size of the plasmid is equal to the end of the last feature. The actual size may extend way beyond the least feature.
In the example file I have attached, the plasmid size is supposed to be 8000 bp, but the last feature ends at 4820, so plasmapR draws a plasmid of size 4820.
library(tidyverse)
library(plasmapR)
pTEST <- read_tsv("pTEST.txt", skip = 2)
pTEST_plot <- plot_plasmid(pTEST, name = "pTEST")
ggsave("pTEST_4in.svg", pTEST_plot, width = 4, height = 4)
ggsave("pTEST_7in.svg", pTEST_plot, width = 7, height = 7)
pTEST.txt

When plotting plasmids from dataframes directly instead of gbk files, plasmapR assumes that the size of the plasmid is equal to the end of the last feature. The actual size may extend way beyond the least feature.
In the example file I have attached, the plasmid size is supposed to be 8000 bp, but the last feature ends at 4820, so plasmapR draws a plasmid of size 4820.
pTEST.txt
