Learn R Programming

catmaply (version 0.9.4)

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

Value

plot_ly object

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).