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 7763757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:44:22+00:00 2026-06-01T14:44:22+00:00

There are a range of tools available for creating publication quality tables using R,

  • 0

There are a range of tools available for creating publication quality tables using R, Sweave, and LaTeX.
In particular, there are helper functions like latex in the Hmisc package, and xtable in the xtable package. I’ve also often written my own code so that I could have complete control over table formatting (e.g., see this example).

However, when preparing publication quality tables a range of issues often arise:

  • how and when to apply numeric formatting
  • how to precisely control alignment of columns and cells
  • how to precisely control cell borders
  • how to convert variable labels to variable names
  • and so on

Beyond the high level issues of specifying the desired table format, there are issues of implementation.

  • When should a helper function such as xtable be used?
  • Which helper function should be used in a given situation?
  • How can the default output of helper functions be customised to particular requirements?

Question

It seems to me that the above issues are deserving of a detailed textbook-style introduction.

Are there any online or offline resources that provide a detailed overview of how to produce publication quality tables using R, Sweave, and LaTeX, and that address the issues discussed above?

  • 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-01T14:44:24+00:00Added an answer on June 1, 2026 at 2:44 pm

    Just to tie this up with a nice little bow at the time of current writing, the best existant tutorials on publication-quality tables and usage scenarios appear to be an amalgamation of these documents:

    • A Sweave example (source)
    • The Joy of Sweave: A Beginner’s Guide to Reproducible Research with Sweave (source)
    • Latex and R via Sweave: An example document how to use Sweave (source)
    • Sweave = R · LaTeX2 (source)
    • The xtable gallery (source)
    • The Sweave Homepage
    • LaTeX documentation

    Going beyond the scope of what currently exists, you may want to ask the author of The Joy of Sweave for a document on publication-quality tables specifically. It seems like he’s gone above and beyond this problem in his research. In addition to the questions you’ve raised, this space specifically could use a style guide that, flatly, does not currently exist.

    And, as mentioned in the question errata, this is a perfect example of a question for https://tex.stackexchange.com/. I encourage you to continue to ask specific questions there when you run into any difficulties in your current projects.

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

Sidebar

Related Questions

Is there a way of using the range() function with stride -1? E.g. using
Is there a maximum range of values passed in mt_rand() function? Is there a
Is there any function similar to string range in vb.net 2.0 ?? What I
Is there a way to iterate over a Time range in Ruby, and set
Is there a way to use user's culture to localize the Range Validator for
Is there any sensible way of transforming this: (for ([cos-t (stream-map cos t-range)] [sin-t
Of course, there are a whole range of possible errors relating to document validity,
I have a javascript function that checks for a date range. Is there any
In C++11 , there are two loops over all elements (range based for and
I was doing a foolish thing like: from itertools import * rows = combinations(range(0,

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.