Learn R Programming

catmaply (version 0.9.4)

add_catmaply_traces: 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
)

Value

plot_ly object

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