View source: R/plotting_gggenes.R
flip_gggenes | R Documentation |
Flip and/or centre gggenes data for clearer visualisation
flip_gggenes(
gggenes_df,
gene_on,
direction = 1,
length = "use_max",
centre = F
)
gggenes_df |
gggenes data frame (with each gene cluster as "gene cluster") |
gene_on |
Gene to centre on / use for direction |
direction |
Direction for gene_on to be in [1/-1] [default = 1] (1 for right, -1 for left) |
length |
Either "use_max" (use the max gene co-ordinate), or "fasta_length" - |
centre |
Centre genes relative to all central ("gene_on") genes for each gene cluster in the dataframe [T/F] |
Data frame with each gene cluster co-ordinates set on the centre_gene and re-orientated for uniformity
centre_gggenes(gggenes_df = dataframe, gene_on = "TssD", direction = -1, centre = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.