shiny.gosling
shiny.gosling copied to clipboard
[Bug]: "flip" argument of the visual_channel_y does not work
Guidelines
- [X] 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