Skip to contents

There are some problems with x and y axis labels when converting ggplot2 to plotly, especially when using facets. This fun has a workaround that is not perfect.

Usage

ggplotly_nottshc(
  ggplot,
  xtitle = NULL,
  ytitle = NULL,
  aes_txt_tooltip = TRUE,
  display_mode_bar = FALSE
)

Arguments

ggplot

ggplot2 object

xtitle

String, x lab title

ytitle

String, y lab title

aes_txt_tooltip

Logical, specifying whether or not to use tooltip

display_mode_bar

Logical, specifying whether to show the annoying mode bar from plotly, FALSE by default!