add_catmaply_slider | R Documentation |
Function to produce catmaply traces.
add_catmaply_slider(
fig,
df,
annotated,
text_color = "#444",
text_size = 12,
text_font_family = c("Open Sans", "verdana", "arial", "sans-serif"),
slider_steps,
slider_currentvalue_prefix = "",
slider_step_visible,
slider_currentvalue_visible,
slider_tick_visible,
hover_hide,
color_palette,
categorical_color_range,
category_items,
legend_items,
legend
)
fig |
plotly object |
df |
data.frame or tibble holding the data. |
annotated |
boolean indicating if annotations should be displayed. |
text_color |
font color to be used for text; (default: "#444"). |
text_size |
font size to be used for text/annotation. Needs to be a number greater than or equal to 1; (default: 12). The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system; (default: c("Open Sans", "verdana", "arial", "sans-serif")). |
slider_steps |
list holding the configuration of the steps to be created. There are two alternatives: |
slider_currentvalue_prefix |
prefix to be used for the slider title. Only used if |
slider_step_visible |
boolean indicating if the step names should be displayed for the slider. (default: TRUE). |
slider_currentvalue_visible |
boolean indicating if the currently selected value should be displayed above the slider. (default: TRUE). |
slider_tick_visible |
boolean indicating if the tickvalues should be displayed below the slider. (default: TRUE). |
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 |
plot_ly object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.