Skip to content

[Bug]: "flip" argument of the visual_channel_y does not work #127

Description

@francescopatane96

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

all

Platform and OS Version

Ubuntu 22.04

Existing Issues

no

What happened?

The flip argument of the visual_channel_y function does not work, while in gosling.js it works pretty well

Steps to reproduce

`
track_met_neg <- add_single_track(
data = track_data_gr(
data_met_gr_neg, chromosomeField = 'seqnames',
genomicFields = c('start','end'), value = 'cov_value'
),
mark = 'bar',
x = visual_channel_x(
field = 'start', type = 'genomic', axis = 'none'
),
xe = visual_channel_x(
field = 'end', type = 'genomic', axis = 'none'
),
y = visual_channel_y(
field = 'cov_value', type = 'quantitative', axis = 'none', flip = TRUE
), color = 'red',

color = visual_channel_color(

field = 'cov_value',

type = 'quantitative'

#legend = TRUE

),

style = default_track_styles(inlineLegend = TRUE, legendTitle = 'cnv', linkStyle = 'circular'),

tooltip = visual_channel_tooltips(
visual_channel_tooltip(field = "start", type = "genomic",
alt = "Start position:"),
visual_channel_tooltip(field = "end", type = "genomic",
alt = "End Position:"),
visual_channel_tooltip(
field = "cov_value",
title = "cnv",
type = "quantitative",
alt = "CNV Value:",
format = "0.2"
),
visual_channel_tooltip(
field = 'gene',
type = 'nominal',
alt = 'Gene Name:'
)
),
size = list(value = 2)
)

`

Expected behavior

inversion of the y axis

Attachments

No response

Screenshots or Videos

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions