add_catmaply_single: Add single Catmaply traces

View source: R/trace.R

add_catmaply_singleR Documentation

Add single Catmaply traces

Description

Function to produce a single catmaply trace without interactive legend.

Usage

add_catmaply_single(
  fig,
  df,
  hover_hide,
  color_palette,
  categorical_color_range,
  legend_items,
  legend,
  visible = 1,
  colorbar_y = NA
)

Arguments

fig

plotly object

df

data.frame or tibble holding the data.

color_palette

a color palette vector.

legend_items

distinct/unique items of ordered legend items

legend

boolean indicating if legend should be displayed or not; (default: TRUE).

colorbar_y

y position of colorbar; (default: NA).

Value

plot_ly object


catmaply documentation built on Jan. 6, 2023, 1:22 a.m.