Skip to content

[Feature request] More control on colours, labels, option to plot labels without boxes, thickness of arrows #16

Description

@barrel0luck

Currently colours are mapped to type.
However, there might be situations where you have two different genes that you want differently coloured. It would be great if plasmapR could accept an additional column with the colour settings or fill settings which can take either the base R colournames as input or hexcode inputs (example: attached text file).

There should be an option to get rid of label boxes and connectors for the smaller features - to make the plot simpler and look less clunkier. Similarly an option to control size of label text would be great.

The thickness of the arrows should also be adjustable. As you can see in the example, reducing the size of the plasmid image output makes it so that the label text starts overlapping with the borders of the feature arrows. Increasing the size of the image resolves this issue, but the arrows look very thin. So producing a larger output image and resizing the image to make it smaller doesn't look good ultimately.

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
pTEST_4in
pTEST_7in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions