Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8944291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:59:26+00:00 2026-06-15T11:59:26+00:00

I am using R to analyse statistical data and plot histograms, scatter plots etc.

  • 0

I am using R to analyse statistical data and plot histograms, scatter plots etc.

And then I have to export all plots as PDFs to manually include them in LaTeX report.

I wonder if there is any way for simplification of this process?

I would be happy to write something like:

\chapter{One}
\begin{r}
    qplot(...)
\end{r}

So that the code between \begin{r} and \end{r} would generate a plot, save it somewhere as PDF and produce TeX like this:

\begin{figure}[ht!]
    \includegraphics[width=1\textwidth,height=1\textheight]{/path/to/plot.pdf}
\end{figure}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:59:27+00:00Added an answer on June 15, 2026 at 11:59 am

    What you want is knitr.

    The website has lots of examples

    within your document you can do something like

    <<boring-plots, fig.width=4, fig.height=4, out.width='.4\\linewidth'>>=
    ## two plots side by side (option fig.show='hold')
    par(mar=c(4,4,.1,.1),cex.lab=.95,cex.axis=.9,mgp=c(2,.7,0),tcl=-.3,las=1)
    boxplot(x)
    hist(x,main='')
    @
    

    Or even set it up so your

    \begin{r}
    
    \end{r}
    

    syntax would work.

    The pdf output of the minimal example from which the example above comes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're using Splunk (A tool to analyse machine data like log files) and have
I have been playing around with using graphs to analyze big data. Its been
We are using Stata to combine and analyze data for all of our agencies
I would like to analyse data per hour using SSAS. The built in date
I'm using Windbg to analyse a deadlock occurring in an data-snap application server written
I am using the analyse menu option from within Xcode 4.2 and I have
I'm considering using RapidMiner to store and analyse a collection of data gathered by
I'm using antlr to analyse and re-write sql query. I have: select : SELECT
We're using SQL Server 2000 Query Analyser, and one issue we have is that
I'm using core data in our iOS universal application and want the ability for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.