saros1.6.0 package

Semi-Automatic Reporting of Ordinary Surveys

girafe

Pull global plotting settings before displaying plot

global_settings_get

Get Global Options for saros-functions

global_settings_reset

Reset Global Options for saros-functions

global_settings_set

Get Global Options for saros-functions

handle_crowd_columns

Handle Kept and Omitted Columns for Crowds

hex_bw

Identify Suitable Font Given Background Hex Colour

initialize_arguments

Validate and Initialize Arguments

initialize_crowd_filtering

Initialize Crowd-Based Filtering Data Structures

is_colour

Are All Colours in Vector Valid Colours

is_string

Is x A String?

make_content

Method for Creating Saros Contents

n_rng

Obtain range of N for a given data set and other settings.

n_rng2

Obtain range of N for a given ggobj.

normalize_makeme_arguments

Normalize Multi-Choice Arguments to Single Values

post_process_makeme_data

Post-process Makeme Data (Legacy)

process_all_crowds

Process All Crowds and Generate Output

process_binary_category_colors

Process Binary Category Colors

process_categorical_na

Process categorical data for showNA settings

apply_label_wrapping

Apply label wrapping based on plot layout

apply_legacy_sorting_adjustments

Apply legacy sorting adjustments for special cases

arrange_table_data

Arrange output data by prespecified orders

arrange_with_order

Apply sorting with optional descending order

calculate_category_order

Calculate ordering based on a specific category value

calculate_column_order

Calculate ordering based on a specific column value

calculate_indep_category_order

Calculate independent variable ordering based on a specific category v...

calculate_indep_column_order

Calculate independent variable ordering based on a specific column val...

calculate_indep_proportion_order

Calculate independent variable ordering based on position categories

calculate_indep_sum_value_order

Calculate independent variable ordering based on multiple category val...

calculate_multiple_category_order

Calculate ordering based on multiple category values

calculate_proportion_order

Calculate proportion-based ordering for dependent variables

calculate_sum_value_order

Calculate ordering based on .sum_value (for category-based sorting)

crowd_plots_as_tabset

Convert List of Plots to Quarto Tabset

detect_variable_types

Detect Variable Types for Dependent and Independent Variables

determine_variable_basis

Determine variable column basis

embed_cat_prop_plot

Embed Interactive Categorical Plot (DEPRECATED!)

embed_cat_table

Embed Reactable Table (DEPRECATED!)

embed_chr_table_html

Interactive table of text data (DEPRECATED)

evaluate_variable_selection

Evaluate Variable Selection

fig_height_h_barchart

Estimate figure height for a horizontal bar chart

fig_height_h_barchart2

Estimate figure height for a horizontal bar chart

filter_crowd_data

Filter and Prepare Data for a Specific Crowd

generate_crowd_output

Generate Output for a Specific Crowd

generate_data_summary

Generate Appropriate Data Summary Based on Variable Types

get_makeme_types

Get all registered options for the type-argument in the makeme-funct...

get_raw_labels

Helper function to extract raw variable labels from the data

get_standard_column_renamer

Get standard column renaming function

get_target_categories

Get target categories for positional sorting

ggsaver

Wrapper Function for ggplot2::ggsave()

process_crowd_data

Process Data for a Single Crowd

process_crowd_settings

Process Crowd Settings

process_global_indep_categories

Process Independent Categories for Global Hiding Logic

process_indep_factor_levels

Process Independent Variable Factor Levels

process_main_question_and_suffixes

Process main question and extract suffixes

process_output_results

Process Output Results

process_table_data

Process data with standard table operations

rename_crowd_outputs

Rename Crowd Outputs

reorder_crowd_array

Reorder Crowd Array Based on Hide Settings

reorder_within

Code-snippets copied and modified from tidytext-package [https://githu...

resolve_variable_overlaps

Resolve Variable Overlaps Between Dependent and Independent Variables

round_numeric_stats

Round numeric statistics

saros-package

saros: Semi-Automatic Reporting of Ordinary Surveys

set_factor_levels_from_order

Set factor levels based on order columns (for backward compatibility)

setup_and_validate_makeme_args

Setup and Validate Makeme Arguments

setup_table_data

Setup table data from dots

shift_labels_always_at

Shift labels_always_at

strip_wrap_var

Apply string wrapping to variables (character or factor)

subset_vector

Given Ordered Integer Vector, Return Requested Set.

summarize_cat_cat_data

Summarize a survey dataset for use in tables and graphs

summarize_data_by_type

Summarize Data Based on Variable Types

tabular_read

Read tabular data from various formats

tabular_write

Write tabular data to various formats

txt_from_cat_mesos_plots

Extract Text Summary from Categorical Mesos Plots

validate_single_dep_var

Validate single dependent variable requirement

validate_type_specific_constraints

Perform Type-Specific Validation Checks

add_category_order

Add response category ordering (only useful for long format cat-cat ta...

add_dep_order

Add dependent variable ordering

add_indep_order

Add independent variable category ordering

add_sorting_order_vars

Create sorting order variables for output dataframe

apply_final_arrangement

Apply final arrangement based on order columns

get_colour_palette

Provide A Colour Set for A Number of Requested Colours

get_colour_set

Provide A Colour Set for A Number of Requested Colours

get_data_display_column

Determine display column based on data availability

get_data_label_opts

Get Valid Data Labels for Figures and Tables

get_dep_display_column

Determine display column for dependent variables in int_plot_html

get_fig_title_suffix_from_ggplot

Generate Figure Title Suffix with N Range and Optional Download Links

get_indep_col_name

Get the name of the independent variable column

get_indep_labels

Get independent variable labels

make_link.default

Save data to a file and return a Markdown link

make_link.list

Save data to a file and return a Markdown link

make_link

Save data to a file and return a Markdown link

makeme

Embed Interactive Plot of Various Kinds Using Tidyselect Syntax

n_range

Provides a range (or single value) for N in data, given dep and indep

n_range2

Provides a range (or single value) for N in a ggplot2-object from `m...

Offers a systematic way for conditional reporting of figures and tables for many (and bivariate combinations of) variables, typically from survey data. Contains interactive 'ggiraph'-based (<https://CRAN.R-project.org/package=ggiraph>) plotting functions and data frame-based summary tables (bivariate significance tests, frequencies/proportions, unique open ended responses, etc) with many arguments for customization, and extensions possible. Uses a global options() system for neatly reducing redundant code. Also contains tools for immediate saving of objects and returning a hashed link to the object, useful for creating download links to high resolution images upon rendering in 'Quarto'. Suitable for highly customized reports, primarily intended for survey research.

  • Maintainer: Stephan Daus
  • License: MIT + file LICENSE
  • Last published: 2025-11-10