The Publisher: White Paper and Poster Studio

Week 15 · Chapter 14

Today’s Agenda

  • A report that rebuilds itself
  • IMRaD and transparency markers
  • Two studio blocks
  • Publishing the site

Tonight’s Starter File

Tonight Is a Studio

  • Two working blocks: the White Paper, then the poster
    • Short input between them; the rest of the evening is your working time
    • Help is in the room all evening
  • What you build tonight is what you submit
  • Leave with a rendered site, a poster layout, and a draft reflection

Done, and Not Finished

  • The study has every hard part behind it
    • A question, a theory, and a reliability-tested codebook
    • A defensible sample, a clean dataset, three figures, and a test from Week 13

A study scattered across a dozen files is raw material. Tonight gives it a form.

A Report That Rebuilds Itself

  • The ordinary way to write up a study is quietly fragile
    • Run the analysis, copy the numbers, screenshot the figures, write around them
    • Change one coding rule and every pasted number is stale
    • Nothing in the document tells you so
  • The alternative: put the analysis inside the document
    • A Quarto document interleaves prose with live code chunks

Numbers You Never Type

The analysis dataset held `r nrow(analysis)`
coded messages, of which `r n_labeled` carried
a gaming-status label.
  • n_labeled comes from a chunk above the sentence:
n_labeled <- analysis %>%
  filter(!is.na(is_gaming)) %>%
  nrow()

In the rendered report those backtick expressions become the actual counts, so nothing in the sentence can fall out of date.

Figures You Never Paste

#| label: fig-msglen
#| echo: false
#| fig-cap: "Message length by channel type."
#| fig-alt: "YOUR TURN: what this chart shows."

analysis %>%
  filter(!is.na(is_gaming)) %>%
  ggplot(aes(message_length, fill = is_gaming)) +
  geom_histogram(binwidth = 5) +
  v2v::theme_v2v()

Those lines sit inside an {r} chunk in the report, so the figure is produced at render time rather than pasted in.

Two Payoffs That Matter

  • The report cannot drift from the analysis, because the report is the analysis
  • The report can be checked
    • Anyone with the source files and the data renders the same results (Peng, 2011)

One Click Renders It

  • The idea predates Quarto and R: Knuth named it literate programming in 1984
  • Here the “one click” is Quarto: Preview (Ctrl+Shift+K, Cmd+Shift+K on a Mac)
  • It renders: it runs every chunk and builds the finished page

IMRaD, and What Each Section Owes the Reader

  • Introduction: the question and why it matters, built from your Research Proposal
  • Methods: what was done, in enough detail for someone else to repeat it
  • Results: what was found, without interpretation
  • Discussion: what the result means, plus the honest limits

An abstract goes in front, and the references at the back.

The White Paper, Specifically

  • IMRaD structure, one citation style used consistently
  • Effect sizes, confidence intervals, and power statistics, not only p-values
  • A pre-registration disclosure in the Methods
  • A Discussion that situates the finding in your theoretical literature

Converting your results into IMRaD costs something. Ask what is lost in the conversion, and what must be added.

Methods, Three Transparency Markers

  1. A data provenance statement: where the data came from, the date range, and what was excluded and why
  2. A reliability report: the statistic, its value, the procedure, the threshold, and the single-coder limitation named as such
  3. The pre-registration disclosure: the dated file in your project repository, cited by path and commit, and every departure from it

Each marker signals that the study meets the standard it claims. Any analysis beyond the plan is labeled exploratory.

What Preregistration Is For

“Preregistration distinguishes analyses and outcomes that result from predictions from those that result from postdictions.”

Nosek et al. (2018, p. 2600)

  • Preregistration is not a promise of virtue. It makes one distinction legible: what was planned and what was found afterwards
  • Draft your disclosure sentence tonight
    • List every departure from your plan, and say how you report each one

Where the 200 Points Sit

  • Introduction and framing: 25
  • Methods: 55
  • Results: 40
  • Discussion: 40
  • Abstract and references: 15
  • Reproducibility and publication: 15
  • Reflection: 10

Methods carries the most weight because it carries the three transparency markers.

Exercise: Not Only a Threshold

Wasserstein and Lazar (2016)

“Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold.”

Wasserstein and Lazar (2016, p. 131)

The word doing the work in that sentence is only.

  • The result: gaming messages average 28.5 characters, non-gaming 33.7; p below .001, Cohen’s d = -0.13
  • For a reader who ignores the p-value, which number shows whether the gap matters?

One Book, Many Chapters

project:
  type: book
book:
  title: "White Paper"
  chapters:
    - index.qmd
    - 01-introduction.qmd
    - 02-methods.qmd
    - 03-results.qmd
    - 04-discussion.qmd
    - 05-reflection.qmd
    - references.qmd

One Book, Many Chapters (cont.)

  • _quarto.yml lists the chapters in order
  • The course package, v2v, wrote it for you with new_portfolio(), with the codebook and the journal as appendices
  • Open _quarto.yml from your White Paper folder in the Explorer panel and change the words after title:

Studio Block One: White Paper

  • Get index.qmd rendering, even if it is mostly headings
  • Copy twitch_analysis.RDS into your project and give 03-results.qmd its setup chunk: Chapter 14 starter, Steps 4 to 6
  • Move your Results section into 03-results.qmd first, since you already have it

Studio Block One (cont.)

  • Replace every pasted number with an inline r expression
  • Replace every pasted figure with a chunk that produces it
  • Then write the Discussion paragraph that reports both the size and the significance of your result

Going Live

v2v::deploy_portfolio(project)
  • Run it from the Chapter 14 starter, Step 13; project is your White Paper folder’s name, set in Step 2
  • Commit and push first (guide 12), or the second check stops it
  • When it asks Publish to GitHub Pages? [y/N], type y in the R terminal and press Enter
  • Click by click: Publish Your Site

What Going Live Prints

── Pre-flight checks ──
ℹ No renv.lock found - skipping renv check
✔ no uncommitted changes
✔ _quarto.yml valid
──────────────────────
✔ Rendering 9 pages
Publish to GitHub Pages? [y/N] y
✔ Publishing to GitHub Pages
ℹ Published to https://your-username.github.io/your-repository/
✔ Portfolio live on GitHub Pages.
  • You type the y in the R terminal, after you commit and push (guide 12)

The Three Pre-Flight Checks

  • renv in sync: the site is built with the package versions the source declares, checked only when the project has a renv.lock
  • No uncommitted changes: every change is committed in Source Control (guide 12), not only saved with Ctrl+S (Cmd+S on a Mac)
  • _quarto.yml valid: the render will not fail partway through

Each check heads off one demoralizing failure, the worst being a collapse the night the portfolio is due. The checks exist so the last step of a long study is the calm one.

The Poster

  • Appropriately large, in landscape: 48 by 36 inches recommended, 36 by 24 accepted
  • Title, authors, and institution, plus a 100-word abstract
  • Background and hypotheses, then the methods in condensed form
  • Key results, with one or two theme_v2v() figures
  • Discussion and implications, plus a QR code to your pre-registration or portfolio

What Earns Space on a Poster

  • A poster is a ninety-second pitch, not a paper at a larger font
  • Pick the one figure that lands the finding in thirty seconds, and give it the most space
  • Cut every sentence that shows effort rather than result
  • Numbers survive the cut. Hedges do not

Your reader is standing up, holding a drink, four feet away.

Studio Block Two: Poster

  • Sketch the layout on paper first, in blocks, before opening any software
  • Place your chosen figure, then build the text around it
  • Write the 100-word abstract last, once the blocks exist
  • Generate the QR code from the URL the deploy gave you
  • Read your title aloud, and cut it if it takes two breaths

Common Failures in the Last Week

  • The site renders on your machine and nowhere else, because renv drifted
  • A figure vanishes from the site, because its chunk uses an object that exists only in your console
  • The poster is exported at screen resolution and printed at full size, so it is blurry
  • The QR code points at a private repository

Test the whole chain tonight, on a machine you did not build it on.

The Reflection

  • One paragraph, and the portfolio is incomplete without it
    • What turned out harder than expected
    • What the dataset could not answer, and why
    • What a second attempt would change
  • Avoid both the bland version (“it went well”) and the anxious version (“it all went wrong”)

A reflection is evidence of judgment, not an apology.

Checkpoint Before You Leave

You should have:

  • A portfolio site that renders locally with no errors
  • A Results section with zero hand-typed numbers
  • A published URL, and a QR code pointing at it
  • A poster layout with its main figure chosen and placed
  • The reflection paragraph drafted, even roughly

From Vibes to Variables

  • A question became a design, and the design became data
  • The data became figures and a test
  • All of it became a site another person can check and extend
  • The shared example happened to be Twitch chat. Nothing in the method depended on that, and your own study proves it

The distance from vibes to variables is the whole of research methods, and you have now walked it once.

Before Finals Week

Before Finals Week (cont.)

Questions, Comments, or Concerns?