add_catmaply_traces: Add Catmaply traces

View source: R/trace.R

add_catmaply_tracesR Documentation

Add Catmaply traces

Description

Function to produce catmaply traces.

Usage

add_catmaply_traces(
  fig,
  df,
  hover_hide,
  color_palette,
  categorical_color_range,
  category_items,
  legend_items
)

Arguments

fig

plotly object

df

data.frame or tibble holding the data.

hover_hide

boolean indicating if the hover label should be hidden or not; (default: FALSE).

color_palette

a color palette vector.

categorical_color_range

if the resulting heatmap holds categorical field values or continuous values that belong to a category; (default: FALSE).

category_items

distinct/unique items of ordered category items

legend_items

distinct/unique items of ordered legend items

categorical_col

if categorical_color_range is TRUE, then this column is used to create categories; (default: FALSE).

Value

plot_ly object


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