GoldenVizR is an early-stage R package for reviewing data visualizations against the GoldenViz rules.
It is designed as a visual QA and teaching layer. GoldenVizR does not create charts for you; it inspects charts you already made and returns structured feedback that helps identify common problems before a chart is used in a notebook, report, dashboard, paper, or presentation.
GoldenVizR is part of the GoldenViz project. The official project site is goldenviz.org.
Generating a chart is rarely the hardest part of data visualization. The harder part is judging whether the chart is clear, honest, readable, and useful.
A chart is not finished when it renders. It is finished when a reader can understand the message quickly, trust the encoding, and spot the important pattern without unnecessary effort.
GoldenVizR turns common visualization judgment checks into repeatable feedback. The goal is not to replace the analyst or designer. The goal is to catch common mistakes early and make good visualization habits easier to apply.
GoldenVizR is organized around 25 practical rules covering:
The rules are grouped into three families:
GoldenVizR does not enforce one visual style. It encourages charts that are readable, honest, and useful.
The current implementation targets ggplot2 charts. It
provides the public package structure, the 25-rule registry, a
structured analyze_plot() API, and heuristic checks that
inspect available plot metadata and built plot data.
The analyzer is useful for early review signals, but it is not a full
visual inspection engine. For a well-described ggplot2
chart, analyze_plot() can now return implemented outcomes
for all 25 rules.
Current limitations:
INFO.ggplot2 chart objects are not supported yet.After CRAN release, install GoldenVizR with:
install.packages("GoldenVizR")During active development, install the development version from GitHub:
install.packages("remotes")
remotes::install_github("WajdiBenSaad/GoldenViz_R")install.packages(c("devtools", "roxygen2", "testthat", "ggplot2", "pkgdown", "lintr", "styler"))
devtools::load_all()
devtools::test()library(ggplot2)
library(GoldenVizR)
p <- ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) +
geom_point() +
labs(
title = "Fuel economy by weight",
subtitle = "Motor Trend cars",
x = "Weight",
y = "Miles per gallon",
colour = "Cylinders",
caption = "Source: mtcars"
)
report <- analyze_plot(p)
report$summary
#> checked_rules implemented_checks pass warning fail info status
#> 1 25 25 24 1 0 0 warningGoldenVizR can turn the structured output from
analyze_plot() into an HTML report for notebooks, review
handoffs, or local files.
report <- analyze_plot(p)
html_report <- render_report(report)
html_reportThe rendered object is suitable for display in R Markdown and other
htmltools-aware contexts. To write the report to disk:
save_report(report, "goldenviz-report.html")If available in your installed version, view_report()
opens a temporary HTML report for local inspection:
view_report(report)Expected report structure:
names(report)
#> [1] "plot_summary" "rule_results" "status_counts" "summary"The package documentation now includes installation, quickstart, manual analysis, 25-rule overview, examples, API reference, and citation/license/trademark pages.
The broader GoldenViz project and course are available at goldenviz.org.
The R package reference site is configured with pkgdown and ReadTheDocs.
GoldenVizR is free and open source software licensed under the GNU
Affero General Public License version 3 or later
(AGPL-3.0-or-later).
Commercial licensing, enterprise use cases, hosted services, or integrations that require terms different from AGPLv3 may be available by separate written agreement.