Skip to content

Commit

Permalink
change to use identical()
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-t committed Sep 19, 2024
1 parent 57cbc97 commit c9e9088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/plot_granges.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ plot_granges <-


## trigger the option for bars or lollipop
if (plot_type =="bars"){
if (identical(plot_type, "bars")){
#define single track
track_bar <- shiny.gosling::add_single_track(
width = 800,
Expand Down Expand Up @@ -130,7 +130,7 @@ plot_granges <-
)

## other option
} else if (plot_type == "lollipop"){
} else if (identical(plot_type, "lollipop")){

## Define multi tracks
track_ref <- shiny.gosling::add_single_track(
Expand Down

0 comments on commit c9e9088

Please sign in to comment.