ggplotly_url: Add a little logic to ggplotly to simplify adding clicky...

View source: R/plot_misc.R

ggplotly_urlR Documentation

Add a little logic to ggplotly to simplify adding clicky link.

Description

There are some other ease of life improvements I have in a few of my plotly invocations which I should add here.

Usage

ggplotly_url(
  plot,
  filename = "ggplotly_url.html",
  id_column = "id",
  plot_title = NULL,
  url_info = NULL,
  tooltip = "all",
  url_column = "url"
)

Arguments

plot

Plot generated via ggplot2.

filename

filename to save the output html plot.

id_column

Column containing the gene IDs.

plot_title

Provide a title for the generated html file.

url_info

Either a glue() string or column of urls.

tooltip

Passed to ggplotly().

url_column

Column in the url_info containing URLs.

Value

plotly with clicky links.


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.