Skip to content

ggplotAgent: A Self-Debugging Multi-Modal Agent for Robust and Reproducible Scientific Visualization

charlin90/ggplotAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

ggplotAgent: A Self-Debugging Multi-Modal Agent for Robust and Reproducible Scientific Visualization

ggplotAgent translates your natural language prompts into publication-quality scientific visualizations. Describe the plot you need, and the agent generates it for you.

Try it live!


Examples

Here are several examples of plots generated by ggplotAgent using different datasets and prompts.

Example 1: Volcano Plot

Dataset: examples/volcano_example.csv

Prompt: Generate a publication-quality volcano plot with the x-axis representing log2 Fold Change and the y-axis representing -log10 FDR. Color points red for significantly upregulated features (log2FC > 1 and FDR < 0.05), blue for significantly downregulated features (log2FC < -1 and FDR < 0.05), and grey for all others. Add a horizontal dashed line indicating the significance threshold at FDR = 0.05, and vertical dashed lines at log2FC = 1 and -1. Ensure the plot has a clean white background with no grid lines.

ggplot-visualization-2025-08-15

Example 2: Heatmap

Dataset: examples/heatmap_test.csv

Prompt: Generate a publication-quality heatmap.

heatmap

Example 3: Correlation Scatter Plot

Dataset: examples/corr_scatter.csv

Prompt: Generate a publication-quality correlation plot with points.

corr

Example 4: Violin Plot

Dataset: examples/heatmap_test.csv

Prompt: Generate a publication-quality violin plot with beautiful colors, use test names as categories.

violinplot

Example 5: Gene Ontology (GO) Dot Plot

Dataset: examples/go_bubble_example.csv

Prompt: Generate a publication-quality dot plot, y axis is godesc, x axis is gene_ratio, point color map with fdr and point size with gene number.

dotplot

Note: These visualizations are powered by the backend ggplotAgent API. The complete source code for this FastAPI service is provided in the backend directory, allowing you to run, inspect, and modify it yourself.

About

ggplotAgent: A Self-Debugging Multi-Modal Agent for Robust and Reproducible Scientific Visualization

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages