Bind pictogram data
bind_pictogram_data(
.,
data = NULL,
icons_data = NULL,
main_category = NULL,
sub_category = NULL,
values = NULL,
icon_id = NULL,
color = NULL,
metadata = NULL,
icons_id = NULL,
icons_path_string = NULL,
icons_width = NULL,
icons_height = NULL
)
A Flourish chart
The prior Flourish object. No need to specify name if piping graph as the graph will take the first argument (i.e. the prior existing graph).
Data.
Icons data.
Main category. The (categorical) column that defines the categories along the main axis. Flourish type hint: column
Subcategory. The (categorical) column that defines the categories within each bar. Flourish type hint: column
Values. (Optional) Choose the numeric columns to determine the size of each bar. If more than 1 is chosen, a dropdown will appear in the visualization, which lets the user choose. Flourish type hint: columns
Icon ID. IDs for joining icons in the Icons datasheet. Must contain IDs that match Icon ID values in Icons Set to the same column as the Main category or Subcategory. Flourish type hint: column
Color. The (categorical) column which determines the icon color. Set to the same column as the Main category or Subcategory. Flourish type hint: column
Info for popups. One or more columns of information (text, image URLs, embedded charts etc) to include in popups and panels Flourish type hint: columns
Icon ID. Unique ID for joining icon path strings. Must contain IDs that match the Icon ID values in DataFlourish type hint: column
Icon. Icon path string (e.g. "M10,10 l80,0 l0,80 l-80,0 z") or the name of a built-in icon (e.g. "female"). Flourish type hint: column
Icon width. Icon width (in pixels). Flourish type hint: column
Icon height. Icon height (in pixels). Flourish type hint: column
try(
flourish(chart_type = "pictogram", api_key = Sys.getenv("FLOURISH_API_KEY")) |>
bind_pictogram_data(gapminder)
)
Run the code above in your browser using DataLab