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,
  xgap,
  ygap
)

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

xgap

Sets the horizontal gap (in pixels) between bricks.

ygap

Sets the vertical gap (in pixels) between bricks.

Value

plot_ly object


catmaply documentation built on June 8, 2025, 10:36 a.m.