Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Can Generative AI Create Research Figures and Graphs?

Generative AI can help researchers create graphs, diagrams, and scientific figures, but visual plausibility does not guarantee accuracy. Learn how to distinguish code-generated visualizations from AI-rendered images, verify plotted values, and document AI assistance in research figures.

485
AI-Generated Research Figures and Graphs Guide 485 of 1196
01 · The Question

Can AI Turn Your Research Data Into Publication-Ready Figures?

You have completed your statistical analysis and need to present the results visually. Your dataset contains group comparisons, trends, and relationships that would be easier to communicate through graphs than through tables alone.

Generative AI can suggest chart types, write plotting code, and sometimes produce complete visualizations from uploaded data. Other tools can generate polished images of charts from text descriptions.

But are these approaches equally reliable?

A graph can look professional while plotting incorrect values, omitting observations, or exaggerating differences. Researchers therefore need to distinguish using AI to construct a visualization from allowing AI to generate an image that merely resembles a data visualization.

02 · The Short Answer

Yes, but Research Figures Must Remain Traceable to Verified Evidence

In Brief

Generative AI can assist researchers in creating figures and graphs by recommending visualization methods, generating plotting code, organizing verified data, and refining labels or layouts. However, every plotted value, analytical transformation, and visual relationship must be checked against the underlying research data.

For empirical graphs, reproducible data-driven visualization is generally preferable to generating a chart as an unconstrained image. Researchers should verify the figure's numerical accuracy, graphical encoding, methodological suitability, and compliance with applicable publication requirements.

03 · What You Need to Know

What AI Can Contribute to Scientific Visualization

What Counts as a Research Figure?

A research figure is a visual representation used to communicate scientific information, including data, analytical results, conceptual relationships, or methodological processes.

Figures may include scatterplots, histograms, box plots, line graphs, forest plots, flowcharts, conceptual diagrams, and other visual formats.

Not all figures make the same evidential claim. A scatterplot represents measured observations or derived statistics, while a conceptual diagram may communicate a proposed theoretical relationship.

Consequently, the appropriate use of generative AI depends on whether the figure represents empirical results, analytical procedures, or conceptual information.

What Is the Difference Between AI-Generated Graph Images and AI-Generated Plotting Code?

This distinction is fundamental to research integrity.

A general-purpose image generator may produce a picture resembling a chart without computing the graphical elements from a dataset. Such an image may contain invented values, inconsistent axes, or incorrect proportions.

By contrast, an AI coding assistant can generate instructions for statistical software to plot actual observations or verified summary statistics.

AI-rendered chart image A visual image generated from a prompt, potentially without a reproducible numerical relationship to the research dataset.
AI-assisted data-driven graph A visualization produced through executable code or analytical software using identifiable data and documented transformations.

Code-based plotting does not automatically guarantee accuracy. AI can write incorrect code, select the wrong variables, or calculate inappropriate statistics.

Nevertheless, a reproducible workflow makes the source of each plotted value easier to inspect and correct.

What Types of Research Figures Can AI Help Create?

AI assistance can support several forms of scientific visualization.

Figure Type Potential AI Assistance Primary Verification Need
Bar chart Generate plotting code for group summaries. Verify the statistic, group labels, scale, and uncertainty indicators.
Scatterplot Plot observations and optional fitted relationships. Verify data coordinates, transformations, and model specifications.
Line graph Visualize repeated observations or ordered measurements. Check time ordering, aggregation, and whether connecting observations is justified.
Histogram Display the distribution of a numerical variable. Verify binning, frequencies, and data exclusions.
Box plot Summarize distributions across groups. Check quartile definitions, whisker conventions, and outliers.
Forest plot Display effect estimates and confidence intervals. Verify effect sizes, intervals, reference lines, and scales.
Conceptual diagram Arrange theoretical constructs and proposed relationships. Check whether arrows and labels reflect the actual framework.
Research workflow Organize procedural stages into a diagram. Verify the sequence and description of the actual methodology.

AI can also assist with formatting and accessibility, including figure captions, labels, and alternative descriptions. These tasks still require verification against the intended scientific meaning.

Can ChatGPT Create Graphs From Research Data?

Some ChatGPT configurations can analyze uploaded datasets and generate visualizations using computational tools.

Researchers may also use ChatGPT to generate code for Python, R, or other statistical environments.

However, the availability of particular capabilities depends on the product configuration and tools accessible during the session.

Regardless of the interface, the researcher should verify the dataset, variable selection, calculations, and graphical output.

A chart appearing directly in a conversation should not be assumed correct merely because it was produced from an uploaded file.

Why Can AI Produce a Graph That Looks Correct but Is Numerically Wrong?

Generative AI may misunderstand variable names, select incorrect columns, aggregate observations improperly, or introduce numerical values not supported by the data.

For example, a researcher might request a graph of average student satisfaction by academic program. The model could mistakenly calculate percentages instead of means or include missing responses as zeros.

The resulting chart might look entirely plausible.

Other errors involve plotting correct values against incorrect labels or using a transformed scale without explaining it.

The possibility of AI-generated graphs plotting incorrect values means researchers should examine both the numerical calculations and the final visual representation.

Can AI Invent Data While Creating a Figure?

Yes. A model may generate values when the prompt does not provide sufficient information, particularly when asked to produce a complete example or visually convincing chart.

For instance, requesting a graph showing how an intervention improved student performance may lead a model to create illustrative scores if no actual dataset is supplied.

Such values can be appropriate in an explicitly hypothetical teaching example, but they must not be presented as empirical research findings.

Researchers should distinguish genuine observations, calculated statistics, simulations, and invented illustrative values.

The concern about AI inventing data in research visualizations is particularly serious when synthetic values become indistinguishable from authentic results.

Can AI Select the Most Appropriate Graph?

AI can recommend chart types based on the research question, variable types, and analytical purpose.

For example, a scatterplot may be suitable for examining the relationship between two continuous variables, while a box plot may help compare distributions across categories.

However, selecting an appropriate graph requires understanding the measurement scale, research design, data distribution, and intended inference.

A bar chart of group means may obscure important distributional variation. A line graph may imply continuity or ordering that the data do not support.

The separate task of using AI to choose an appropriate research graph requires methodological judgment rather than simply selecting a familiar chart type.

Can AI Generate Figures Directly From Raw Data?

Yes, when suitable computational tools are available. AI can assist with reading datasets, preparing plotting instructions, and executing code that produces visualizations.

However, researchers must inspect how the data were processed.

For example, a graph of average test scores requires decisions about missing values, group membership, weighting, and the statistic being displayed.

If these decisions are made incorrectly, the plotted graph may misrepresent the study even when the code executes successfully.

Researchers should establish the accuracy of AI-created figures derived from raw research data through reproducible calculations and source-level checks.

Can AI Make Graphs Visually Misleading Without Changing the Data?

Yes. Visual design choices influence how readers perceive differences, trends, and uncertainty.

A bar chart with a truncated vertical axis may exaggerate relatively small differences. A three-dimensional chart may distort the apparent magnitude of categories. Unequal axis intervals can misrepresent the spacing between observations.

Color intensity, line thickness, and annotation placement can also draw disproportionate attention to particular results.

These choices may be misleading even when the underlying numerical values are accurate.

The risk of AI-generated visualizations creating misleading emphasis should therefore be considered separately from numerical accuracy.

Should All Bar Charts Start at Zero?

Bar charts encode magnitude through length, so a zero baseline is generally important when the bar length represents the measured quantity.

Truncating the axis can exaggerate differences in the apparent lengths of the bars.

However, other graph types may appropriately use nonzero axis limits. For example, a line graph displaying small changes in a physiological measurement may use a restricted vertical range when that choice is clearly communicated and scientifically justified.

Researchers should evaluate how the graphical encoding affects interpretation rather than applying a single rule indiscriminately to every visualization.

Can AI Add Statistical Significance Indicators to Figures?

AI can help place significance annotations, confidence intervals, or other statistical information on graphs.

However, these elements must be derived from actual analyses.

A model should not invent p-values, confidence intervals, significance stars, or effect estimates to make a figure appear complete.

Researchers should also verify whether the displayed statistical test matches the study design and whether multiple-comparison adjustments are relevant.

Statistical annotations should communicate the analysis accurately rather than merely signal that a result is important.

How Should Researchers Verify Error Bars?

Error bars can represent different quantities, including standard deviations, standard errors, and confidence intervals.

These quantities are not interchangeable and communicate different aspects of variation or uncertainty.

AI may produce error bars without clearly identifying what they represent or may calculate them using the wrong denominator.

Researchers should verify the calculations, sample sizes, and assumptions underlying the displayed intervals.

Figure captions should explain what the error bars represent and, where relevant, how they were calculated.

For repeated-measures or clustered data, uncertainty estimates should reflect the appropriate analytical structure rather than treating all observations as independent.

Can AI Create Conceptual Research Diagrams?

Yes. AI can help arrange constructs, organize processes, and produce preliminary conceptual illustrations.

For example, an educational technology researcher might create a diagram depicting proposed relationships among perceived usefulness, self-regulated learning, and technology adoption.

However, AI may introduce unsupported arrows or imply causal relationships that the study has not established.

The resulting diagram should be checked against the theoretical framework and actual research model.

Creating AI-assisted conceptual research diagrams involves different verification requirements from plotting numerical results, but conceptual accuracy remains essential.

Can AI Improve Figure Labels and Captions?

Yes. AI can help refine titles, axis labels, legends, and captions to improve readability.

However, editing can change the meaning of a figure if terminology becomes less precise.

For example, replacing "perceived learning improvement" with "learning improvement" removes an important distinction between self-reported perception and measured performance.

Similarly, changing "association" to "effect" may introduce an unsupported causal interpretation.

Researchers should verify that AI-assisted figure labels and captions preserve the meaning and evidential scope of the results.

What Makes a Research Graph Reproducible?

A reproducible visualization can be regenerated from identifiable data using documented procedures.

For a computational graph, relevant records may include the source dataset, analysis script, software version, data transformations, statistical calculations, and plotting parameters.

Researchers should also retain the final figure and any necessary intermediate analytical outputs.

Reproducibility does not guarantee correctness. A script can repeatedly produce an incorrect graph if it uses the wrong variables or calculations.

However, reproducibility makes errors easier to investigate and correct.

How Can Researchers Verify Every Plotted Value?

Verification should connect each plotted element to the original data or validated analytical output.

For a bar chart, researchers can compare each bar height with the corresponding summary statistic. For a scatterplot, they can confirm that the coordinates represent the intended observations.

For a forest plot, they should verify each effect estimate, confidence interval, and reference line.

Where code generates the figure, reviewing the underlying plotting data and calculations is generally more reliable than inspecting the rendered image alone.

The systematic process of verifying values in AI-generated research figures should be completed before publication.

Are AI-Generated Research Figures Allowed in Journal Articles?

Acceptance depends on the publisher, journal, figure category, and method of generation.

Some publishers distinguish AI-assisted data visualizations produced through reproducible computational procedures from images created using general-purpose generative image tools.

Elsevier's generative AI policies for journals, for example, distinguish explanatory illustrations, data visualizations, and primary research images.

Other publishers may impose different restrictions on AI-generated artwork or figures.

Researchers should verify the current policies of their intended publication venue rather than assuming that permission to use AI for manuscript writing also covers every figure type.

The related question of using AI-generated images in research papers requires particular attention to these editorial distinctions.

How Should AI Assistance in Figure Creation Be Disclosed?

Disclosure depends on the applicable journal, institutional, and disciplinary requirements.

When AI materially contributes to the analytical or visual production of a research figure, researchers should document its role and the procedures used to verify the output.

For code-generated graphs, the Methods section may need to describe the computational workflow, particularly when AI assistance affects data transformations or analytical procedures.

For permitted explanatory illustrations, a publisher may require a figure-caption statement and a separate AI-use declaration.

Researchers should distinguish tool disclosure from methodological reporting. Naming a model does not establish that the plotted values are accurate.

When Could an AI-Generated Graph Constitute Research Fabrication or Falsification?

Research integrity concerns arise when a figure presents invented values as empirical observations or deliberately alters results so that the research record is misrepresented.

For example, generating fictional student performance scores and presenting them as actual experimental outcomes may raise fabrication concerns.

Changing plotted values or selectively omitting inconvenient observations to misrepresent the results may raise falsification concerns.

However, an incorrect graph does not automatically establish formal misconduct. Errors may arise from misunderstanding, programming mistakes, or inappropriate visualization choices.

Formal determinations depend on applicable research misconduct standards and the circumstances of the case.

Watch Out

A polished AI-generated graph may contain accurate-looking but invented values, incorrect labels, or misleading scales. Never accept a figure solely because it resembles a professional scientific visualization. Verify its numerical and graphical relationship to the original evidence.

04 · A Practical Example

Creating a Graph of Student Performance With AI-Generated Code

Hypothetical Example

Comparing Test Scores Across Two Instructional Conditions

An educational technology researcher compares student test scores between a conventional instruction group and an AI-supported instruction group.

The researcher asks a generative AI assistant to create a graph showing the mean scores and uncertainty intervals.

All values in this example are hypothetical.

Step 1: Establish the Verified Statistics

The researcher confirms the group summaries using the original analysis.

Group Sample Size Mean Score Standard Deviation
Conventional instruction 60 74.2 8.1
AI-supported instruction 60 79.5 7.6

Step 2: Ask AI to Generate Plotting Code

The researcher provides the verified statistics and requests a graph of group means with standard deviation error bars.

The instruction explicitly identifies the error-bar type and requires the code to use only the supplied values.

Step 3: Inspect the Generated Graph

The first output displays the correct means but labels the error bars as 95% confidence intervals.

This is incorrect because the supplied values are standard deviations, not confidence intervals.

Step 4: Correct the Figure

The researcher revises the plotting code and verifies the bar heights, error-bar lengths, group labels, and vertical scale.

The caption states that error bars represent standard deviations.

Step 5: Check the Interpretation

The graph shows a higher observed mean score in the AI-supported group.

However, the visual difference alone does not establish statistical significance or a causal effect.

Those conclusions depend on the study design and appropriate statistical analysis.

Step 6: Preserve the Reproducible Record

The researcher retains the original data, verified summary statistics, plotting script, and final figure.

This makes it possible to regenerate the visualization and examine how the displayed values were obtained.

The example demonstrates why AI-assisted graph creation is most defensible when the visualization remains computationally connected to verified research data.

05 · What Researchers Often Get Wrong

Common Misconceptions About AI-Generated Research Figures

Misconception

Does an AI-Generated Graph Automatically Represent the Uploaded Dataset Correctly?

No. AI may select incorrect variables, aggregate data improperly, or mislabel the results. Researchers should verify the calculations and plotted values.

Misconception

Is a Chart Generated Through Code Guaranteed to Be Accurate?

No. Executable code can contain incorrect formulas, filters, or variable mappings. Reproducibility improves auditability but does not establish correctness by itself.

Misconception

Can AI Generate Missing Values to Make a Research Graph Complete?

Not without an appropriate, documented analytical basis. Invented values should not be presented as authentic observations. Legitimate imputation or simulation requires methodological justification and transparent reporting.

Misconception

Does a Visually Attractive Graph Communicate Results More Accurately?

Not necessarily. Axis scaling, graphical proportions, color emphasis, and omitted information can distort interpretation even when the figure looks professional.

Misconception

Can AI Add Significance Stars Without Statistical Results?

No. Statistical annotations must correspond to actual analyses. Invented significance indicators misrepresent the research evidence.

Misconception

Does Disclosing AI Figure Creation Make an Incorrect Graph Acceptable?

No. Disclosure supports transparency but does not correct numerical errors, misleading visual design, or violations of journal policy.

06 · What This Means for You

How to Use AI for Research Figures Without Losing Numerical Control

Begin with the scientific question and verified analytical results, not the appearance of the figure.

Use AI to support graph selection, plotting code, and visual organization while maintaining a traceable connection between each graphical element and the source data.

A Practical Figure Creation Decision Framework

If the figure represents empirical numerical results
Use verified data and a reproducible plotting workflow rather than an unconstrained generated chart image.
If AI recommends a graph type
Evaluate its suitability for the variable types, research design, and intended interpretation.
If AI generates plotting code
Review variable selection, transformations, calculations, and graphical settings before accepting the output.
If the graph includes error bars or statistical annotations
Verify their numerical basis and explain what they represent.
If the figure is conceptual rather than empirical
Verify constructs, relationships, and publication requirements instead of treating visual plausibility as conceptual accuracy.

A Practical Prompt for Generating a Research Figure

Illustrative AI Prompt

"I am preparing a research figure using [dataset or verified analytical output]. The research question is [question], the variables are [names and measurement levels], and the intended comparison or relationship is [purpose]. Recommend an appropriate visualization and generate reproducible plotting code using only the supplied data. Do not invent observations, summary statistics, confidence intervals, or significance indicators. Identify all aggregation, filtering, and transformation steps. Use clear labels and scientifically appropriate scales. Explain how I can verify every plotted value against the original dataset."

Execute and inspect the code in an appropriate analytical environment. Compare the resulting plotting data with the verified research outputs before using the figure.

The final visualization should communicate the evidence accurately, including its uncertainty and limitations, rather than merely produce a polished visual impression.

07 · A Quick Checklist

Before Publishing an AI-Assisted Research Figure, Verify These

Before accepting an AI-generated research figure or graph, check:
Confirm the figure type is appropriate for the research question and variable characteristics.
Use authentic research data or clearly identified simulated values, as appropriate.
Verify the dataset, variable mappings, filtering, and aggregation procedures.
Compare every plotted value with the original data or verified analytical output.
Check axis labels, units, scales, reference lines, and graphical proportions.
Verify error bars, confidence intervals, and statistical significance annotations.
Inspect the figure for misleading emphasis, omitted observations, or distorted visual relationships.
Preserve the source data, plotting code, and relevant analytical records.
Check the target journal's current figure preparation and generative AI requirements.
08 · Frequently Asked Questions

Frequently Asked Questions About AI Research Figures and Graphs

Can ChatGPT create graphs for research papers?

Yes, when suitable tools are available, ChatGPT can assist with data visualization or generate plotting code. Researchers must verify the data, calculations, and final graphical representation.

Is it acceptable to use AI-generated graphs in academic research?

Potentially, when the figures accurately represent verified data and comply with applicable journal requirements. Reproducible data-driven plotting is preferable to unconstrained generation of chart images for empirical results.

Can AI choose the best chart for a dataset?

AI can recommend chart types, but suitability depends on variable types, research design, distributional characteristics, and the intended interpretation. Researchers should evaluate the recommendation.

Can AI invent numbers while generating a graph?

Yes. Models may create illustrative or unsupported values, especially when the prompt lacks complete data. Such values must not be represented as authentic empirical findings.

Are graphs generated using Python or R automatically accurate?

No. Code may contain incorrect variable mappings, formulas, filters, or plotting settings. Researchers should verify both the computational procedure and the resulting figure.

Can AI create misleading graphs using correct data?

Yes. Truncated scales, inappropriate chart types, disproportionate graphical elements, or selective omissions can distort interpretation even when numerical values are correct.

Should researchers disclose AI assistance in figure creation?

Researchers should follow current journal and institutional policies. Material AI assistance may require disclosure, and analytical procedures should be documented sufficiently for evaluation and reproducibility.

Can AI add statistical significance indicators to research graphs?

AI can help display verified statistical results, but significance indicators must correspond to actual analyses. They should not be invented or inferred from visual differences alone.

09 · The Bottom Line

AI Can Draw the Graph, but the Data Must Determine What It Shows

The Bottom Line

Generative AI can help create research figures and graphs, but their scientific validity depends on accurate data, appropriate visual encoding, and reproducible analytical procedures. A convincing graph is not necessarily a correct graph.

Use AI to support visualization rather than substitute for verified numerical evidence. Check the plotted values, graphical scales, uncertainty indicators, and figure captions. The final figure should represent what the research established, not what the model can make visually persuasive.

10 · Sources and Further Reading

Research and Guidance on Scientific Data Visualization

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes