View source: R/aigra-diagrams.R
| aigra_generate_result_diagrams | R Documentation |
Generates diagram images for result rows and returns the updated data frame with diagram_path, diagram_prompt, image_provider, and image_model columns.
aigra_generate_result_diagrams(
result,
output_dir = NULL,
provider = "gemini",
model = "gemini-2.5-flash-image",
rows = NULL,
only_required = TRUE,
force = FALSE,
max_images = 1,
overwrite = FALSE
)
result |
A data frame returned by AIGRA. |
output_dir |
Directory for generated images. |
provider |
Image provider. |
model |
Image model. |
rows |
Optional row numbers to process. |
only_required |
If TRUE, process only rows where diagram_required is true. |
force |
If TRUE, generate even when diagram_required is false or missing. |
max_images |
Maximum number of images to generate. |
overwrite |
If TRUE, overwrite existing image files. |
Updated result data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.