Abstract
There is a wide range of R packages created for data visualization, but still, there was no simple and easily accessible way to create clean and transparent charts - up to now. The 'tidycharts' package enables the user to generate charts compliant with International Business Communication Standards ('IBCS'). It means unified bar widths, colors, chart sizes, etc. Creating homogeneous reports has never been that easy! Additionally, users can apply semantic notation to indicate different data scenarios (plan, budget, forecast). What's more, it is possible to customize the charts by creating a personal color pallet with the possibility of switching to default options after the experiments. We wanted the package to be helpful in writing reports, so we also made joining charts in a one, clear image possible. All charts are generated in SVG format and can be shown in the 'RStudio' viewer pane or exported to HTML output of 'knitr'/'markdown'.
Introduction
The R ecosystem offers a vast array of tools for data visualization, yet a significant gap persists in professional business reporting: the lack of a streamlined method to produce charts that are both aesthetically clean and strictly adherent to international communication standards. In business environments, visual consistency is paramount for clarity and rapid decision-making. However, manually enforcing uniform bar widths, color schemes, and chart dimensions across a suite of reports is a labor-intensive and error-prone task.
The tidycharts package was developed to bridge this gap by automating compliance with the International Business Communication Standards (IBCS). By providing an "opinionated" framework, the package allows analysts to focus on extracting insights from data rather than the technicalities of graphic design, ensuring that every visualization speaks the same professional language.
Methodology and Technical Implementation
tidycharts provides a high-level API designed for the generation of diverse chart types, including bar, column, line, waterfall, and scatter plots. The package is built on three core technical pillars:
SVG-First Rendering
Unlike many R plotting libraries that default to raster formats, tidycharts generates all visualizations as Scalable Vector Graphics (SVG). This approach ensures that charts remain crisp and high-quality regardless of resolution. Furthermore, SVG output integrates natively with the RStudio viewer pane and is easily embedded into HTML reports generated via knitr or markdown.
Modular and Pipeline-Friendly Construction
The package adopts a modular architecture compatible with the magrittr pipe operator (%>%). This allows users to build complex visualizations iteratively by layering components. For instance, a user can start with a base SVG string and progressively add data series or annotations.
Semantic Notation
A key feature of IBCS compliance is the use of semantic notation to distinguish between different data scenarios. tidycharts includes built-in logic to automatically apply standardized patterns and colors for "plan," "budget," and "forecast" data, reducing the cognitive load on the reader.
Key Features and Business Logic
The package's design philosophy centers on "homogeneity by default." By enforcing strict design constraints, it ensures that reports remain visually consistent from the first page to the last.
Contextual Metadata
Standardized reporting requires more than just bars and lines; it requires context. Functions like add_title are specifically engineered to handle IBCS-compliant legends. These legends encapsulate critical metadata, including the structural dimension (e.g., legal entity or organizational unit), the business measure, units of measure, and the relevant timeframe or scenario.
Specialized Visualizations
Beyond standard charts, tidycharts offers specialized functions for complex business analysis, such as waterfall charts and variance charts (both absolute and relative). These visuals are essential for understanding drivers of change and performance against targets but are often difficult to implement using generic plotting libraries.
Results and Discussion
The tidycharts library comprises over 40 specialized functions, ranging from basic chart generation (bar_chart, line_chart) to advanced layout management (join_charts, facet_chart). The primary achievement of the package is the democratization of professional-grade business visualization. By lowering the technical barrier to IBCS compliance, it enables a wider range of users to produce high-stakes communication materials that are both transparent and authoritative.
Limitations and Future Directions
While tidycharts excels within the IBCS framework, its "opinionated" nature may be perceived as a limitation by users seeking non-standard or highly creative visualizations. The enforced constraints, while beneficial for consistency, naturally limit design flexibility.
Currently, the package focuses on static SVG output for reporting. Future development could explore the integration of interactive SVG elements or real-time dashboarding capabilities. Additionally, while the package supports custom color palettes, its core value remains its out-of-the-box adherence to established business standards.
Summary updated