Skip to content

Commit

Permalink
add tooltips to lolipop plot
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-t committed Aug 6, 2024
1 parent b9b7388 commit af48390
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion R/plot_shinygosling.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,18 @@ plot_granges <-
xe = visual_channel_x(field = "end", type = "genomic"),
y = visual_channel_y(field = "am_class", type = "nominal", axis = "right"),
text = list(field = "ALT", type = "nominal"),
size = list(value = 5)
size = list(value = 5),
tooltip = visual_channel_tooltips(
visual_channel_tooltip(field = "REF", type = "nominal",
alt = "Reference"),
visual_channel_tooltip(field = "ALT", type = "nominal",
alt = "Alternative / Mutation"),
visual_channel_tooltip(
field = "am_pathogenicity",
type = "quantitative",
alt = "AM_Pathogenicity Score",
format = "0.2"
) )
)

## Compose view
Expand Down

0 comments on commit af48390

Please sign in to comment.