Skip to contents

Dashboard Creation

Functions for creating and managing dashboards

create_dashboard()
Create a new dashboard project
add_dashboard_page()
Add a page to the dashboard
add_page()
Add Page to Dashboard (Alias)
add_pages()
Add multiple pages to a dashboard
create_page()
Create a page object
add_content()
Add content collection(s) to a page
generate_dashboard()
Generate all dashboard files
generate_dashboards()
Generate multiple dashboards
publish_dashboard()
Publish dashboard to GitHub Pages
update_dashboard()
Update dashboard on GitHub
create_loading_overlay()
Create a loading overlay for a dashboard page
create_pagination_nav()
Create pagination navigation controls for a dashboard page
add_powered_by_dashboardr()
Add "Powered by dashboardr" branding to footer

Demo Dashboards

Built-in demo dashboards showcasing package features

tutorial_dashboard()
Generate a tutorial dashboard.
showcase_dashboard()
Generate a showcase dashboard demonstrating all dashboardr features.
ascor_dashboard()
Generate an ASCoR-themed dashboard for the University of Amsterdam

Visualization Creation

Functions for creating visualizations

create_viz()
Create a new visualization collection
create_content()
Create a new content/visualization collection (alias for create_viz)
add_viz()
Add a visualization to the collection
add_vizzes()
Add Multiple Visualizations at Once
combine_viz()
Combine visualization collections
combine_content()
Combine content collections (universal combiner)
merge_collections()
Merge two content/viz collections
add_pagination() add_pagination.page_object()
Add pagination break to visualization collection
set_tabgroup_labels()
Set or update tabgroup display labels
preview()
Preview any dashboardr object
save_widget()
Save widget as self-contained HTML
validate_specs()
Validate visualization specifications in a collection

Visualization Types

Functions for different chart types

viz_histogram()
Create an Histogram
viz_density()
Create a Density Plot
viz_boxplot()
Create a Box Plot
viz_bar()
Create Bar Chart
viz_stackedbar()
Create a Stacked Bar Chart
viz_stackedbars()
Stacked Bar Charts for Multiple Variables (Superseded)
viz_timeline()
Create a Timeline Chart
viz_heatmap()
Create a Heatmap
viz_scatter()
Create Scatter Plot
viz_map()
Create an interactive map visualization
viz_treemap()
Create a treemap visualization
viz_lollipop()
Create a Lollipop Chart
viz_dumbbell()
Create a Dumbbell Chart
viz_funnel()
Create a Funnel Chart
viz_gauge()
Create a Gauge or Bullet Chart
viz_pie()
Create a Pie or Donut Chart
viz_sankey()
Create a Sankey Diagram
viz_waffle()
Create a Waffle Chart

Tooltip Customization

Functions for customizing chart tooltips

tooltip()
Create a Tooltip Configuration
print(<dashboardr_tooltip>)
Print method for tooltip configurations
add_hc()
Add a custom highcharter chart

Stacked Bar Charts

viz_stackedbar() is the unified function for all stacked bar charts. Use x_var + stack_var for crosstabs, or x_vars for multi-variable comparisons. viz_stackedbars() is a legacy wrapper that calls viz_stackedbar().

viz_stackedbar()
Create a Stacked Bar Chart
viz_stackedbars()
Stacked Bar Charts for Multiple Variables (Superseded)

Functions for dashboard navigation and structure

navbar_section()
Create a navbar section for hybrid navigation
navbar_menu()
Create a navbar dropdown menu
add_navbar_element()
Add a custom navbar element to dashboard
sidebar_group()
Create a sidebar group for hybrid navigation
add_layout_column()
Start a manual layout column
add_layout_row()
Start a manual layout row inside a layout column
end_layout_row()
End a manual layout row
end_layout_column()
End a manual layout column
icon()
Create iconify icon shortcode

Content Helpers

Functions for adding content to dashboards

md_text()
Create multi-line markdown text content
text_lines()
Create text content from a character vector
create_blockquote()
Create a Styled Blockquote
card()
Create a Bootstrap card component
card_row()
Display cards in a Bootstrap row
spec_viz()
Create a single visualization specification

Content Blocks

Functions for adding rich content blocks to pages

add_text()
Add text to content collection (pipeable)
add_image()
Add image to content collection (pipeable)
add_callout()
Add callout box
add_divider()
Add horizontal divider
add_code()
Add code block
add_card()
Add card
add_accordion()
Add collapsible accordion/details section
add_spacer()
Add vertical spacer
add_html()
Add raw HTML content
add_quote()
Add a blockquote
add_badge()
Add a status badge

HTML Helpers

Standalone HTML generation functions for use in custom content

html_accordion()
Create a collapsible accordion section
html_badge()
Create a status badge
html_card()
Create a Bootstrap-style card
html_divider()
Create a horizontal divider
html_iframe()
Create an iframe embed
html_metric()
Create a metric card
html_spacer()
Create a vertical spacer

Modals

Functions for adding interactive modal dialogs

add_modal()
Add Modal to Content Collection (Pipeable)
enable_modals()
Enable Modal Functionality
modal_content()
Create Modal Content Container
modal_link()
Create Modal Link

Metrics & Value Boxes

Functions for displaying KPIs and metrics

add_metric()
Add a metric/value box
add_value_box()
Add a custom styled value box
add_value_box_row()
Start a value box row
end_value_box_row()
End a value box row
render_value_box()
Render a single value box
render_value_box_row()
Render a row of value boxes

Interactive Inputs

Functions for adding interactive inputs to dashboards

add_input()
Add an interactive input filter
add_filter()
Add a filter control (simplified interface)
add_input_row()
Start an input row
add_reset_button()
Add a reset button to reset filters
add_linked_inputs()
Add linked parent-child inputs (cascading dropdowns)
enable_inputs()
Enable Input Filter Functionality
enable_show_when()
Enable show_when (conditional visibility) script only
enable_chart_export()
Enable chart export buttons (PNG/SVG/PDF/CSV)
enable_accessibility()
Enable Accessibility Enhancements
enable_url_params()
Enable URL Parameter Deep Linking
end_input_row()
End an input row
render_input()
Render an input widget
render_input_row()
Render a row of input widgets
render_viz_html()
Render a viz result as raw HTML
show_when_open()
Open a conditional-visibility wrapper
show_when_close()
Close a conditional-visibility wrapper

Functions for adding page sidebars with filters

add_sidebar()
Add a sidebar to a page
end_sidebar()
End a sidebar
enable_sidebar()
Enable Sidebar Styling

Embedded Content

Functions for embedding external content

add_widget()
Add a generic htmlwidget to the dashboard
add_plotly()
Add a plotly chart to the dashboard
add_echarts()
Add an echarts4r chart to the dashboard
add_ggiraph()
Add a ggiraph interactive plot to the dashboard
add_ggplot()
Add a static ggplot2 plot to the dashboard
add_leaflet()
Add a leaflet map to the dashboard
add_iframe()
Add iframe
add_video()
Add video

Tables

Functions for adding tables to pages

add_table()
Add generic table (data frame)
add_gt()
Add gt table
add_reactable()
Add reactable table
add_DT()
Add DT datatable

Themes & Styling

Functions for customizing dashboard appearance

apply_theme()
Apply Theme to Dashboard
theme_modern()
Apply a Modern Tech Theme to Dashboard
theme_clean()
Apply a Clean Theme to Dashboard
theme_academic()
Apply a Professional Academic Theme to Dashboard
theme_ascor()
Apply ASCoR/UvA Theme to Dashboard
theme_uva()
Apply UvA Theme to Dashboard (Alias)

S3 methods for displaying objects

print(<viz_collection>)
Print Visualization Collection
print(<dashboard_project>)
Print Dashboard Project
print(<page_object>)
Print method for page objects
print(<dashboardr_widget>)
Print method for dashboardr_widget - opens in viewer
knit_print(<content_collection>)
Knitr print method for content collections
knit_print(<page_object>)
Knitr print method for page objects
knit_print(<dashboard_project>)
Knitr print method for dashboard projects
show_structure()
Show collection structure (even with data attached)
`+`(<viz_collection>)
Combine Visualization Collections with + Operator
`+`(<content_collection>)
Combine Content Collections with + Operator

MCP Server

Model Context Protocol server for LLM-assisted dashboard coding

dashboardr_mcp_server()
Start dashboardr MCP Server

Page Object Methods

S3 methods for page objects

add_text.page_object()
Add text to a page
add_callout.page_object()
Add a callout to a page
set_tabgroup_labels.page_object()
Set tabgroup labels for a page