View source: R/compare_accessibility.R
compare_accessibility | R Documentation |
Main function to generate accessibility comparisons across multiple websites
compare_accessibility(
input,
api_key = NULL,
site_names = NULL,
plot_type = c("category_counts", "issues", "structure"),
report_type = 1,
theme = "light"
)
input |
Character vector. URLs to analyze or paths to JSON files |
api_key |
Character string. WAVE API key (required for URL analysis) |
site_names |
Character vector. Optional custom names for sites |
plot_type |
Character string. Type of visualization:
|
report_type |
Integer. WAVE report type (1-4) |
theme |
Character string. Visual theme for plot (default: "light") |
ggplot object containing the requested visualization
## Not run:
# Compare multiple websites
p <- compare_accessibility(
input = c("https://example.com", "https://example.org"),
api_key = "your_api_key",
plot_type = "category_counts"
)
# Save the plot to a temporary directory
ggsave(file.path(tempdir(), "accessibility_comparison.png"), p)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.