plotly_double_yaxis: Plotly double y axis

View source: R/plotly_double_yaxis.R

plotly_double_yaxisR Documentation

Plotly double y axis

Description

Plotly double y axis

Usage

plotly_double_yaxis(
  data,
  type,
  mode,
  x,
  yaxis1,
  yaxis2,
  legend1,
  legend2,
  xaxis_title,
  yaxis1_title,
  yaxis2_title,
  main_title,
  source
)

Arguments

data

data.frame

type

type of plot (for instance scatter)

mode

plotly mode (for instance lines)

x

character string with column to plot on the x axis

yaxis1

character string with column to plot on the y axis 1 (i.e. on the left hand side)

yaxis2

character string with column to plot on the y axis 2 (i.e. on the right hand side)

legend1

legend for yaxis1

legend2

legend for yaxis2

xaxis_title

title on the x axis

yaxis1_title

title on y axis 1

yaxis2_title

title on y axis 2

main_title

title on top of the plot

source

source passed on to plotly::plot_ly()


kristian-bak/betting documentation built on Oct. 24, 2022, 1:35 p.m.