Questions tagged [tufte]

An approach to data graphics design promoted by Edward Tufte.

Edward Tufte is an influential author of books on the visual display of information. He has introduced a number of distinctively minimal styles of classic statistical graphics. His graphics attempt to maximize proportion of ink (or pixels) that is used to present data compared to the total amount of ink (or pixels) present in the graphic.

Edward Tufte's official website: http://www.edwardtufte.com/tufte/

60 questions
23
votes
6 answers

Line breaks in R Markdown text (not code blocks)

Using the tufte_template rmarkdown file, I am trying to make a new paragraph (like \newthought{}, but no caps.) I use two spaces, denoted here by *: # Introduction The Tufte-\LaTeX\ [^tufte_latex] document** ** classes define a style similar to the…
d8aninja
  • 3,233
  • 4
  • 36
  • 60
22
votes
1 answer

Sparklines in ggplot2

Tufte Sparklines (as illustrated in his Beautiful Evidence) have been replicated in base graphics as part of YaleToolkit and further perfected as a result of this question. Sparklines have also been done in lattice as a part of my small side project…
Geek On Acid
  • 6,330
  • 4
  • 44
  • 64
18
votes
4 answers

Using the Tufte-Latex class in Sweave

I must confess that today is my first day using either Sweave or LaTeX. Yes, it's true. I realized today that my "before 40" bucket list was not going to resolve itself in the absence of my involvement. And like so many men of my generation,…
JD Long
  • 59,675
  • 58
  • 202
  • 294
18
votes
5 answers

Functions available for Tufte boxplots in R?

I have some data that I've divided into enough groupings that standard boxplots look very crowded. Tufte has his own boxplots in which you basically drop all or half of box, like this: Some sample data: cw <- transform(ChickWeight, Time =…
Ari B. Friedman
  • 71,271
  • 35
  • 175
  • 235
16
votes
1 answer

R YaleToolkit: How to change the font size of tick labels on the sparklines?

I'm using this function for some quick and easy sparklines with R but I can't seem to work out how to change the font size to avoid ugly overlaps of the y-axis tick labels. Here's my code (see below for a reproducible example): sparklines(gamma.df,…
Ben
  • 41,615
  • 18
  • 132
  • 227
7
votes
2 answers

How can I reset sidenote numbering at each chapter in tufte-style Bookdown with HTML output?

I am working on converting a tufte-LaTeX book to tufte-Bookdown using the tufte and msmbstyle packages. I have a whole bunch of sidenotes and would like the numbering to restart with each chapter so I don't reach like 400 by the end of the book. I…
NickCHK
  • 1,093
  • 7
  • 17
7
votes
2 answers

ggplot2 Tufte lines same as axis ticks

I used Tufte lines with ggplot2 for years now, but I've always wondered if there was an automated way to draw them, so they correspond to axis tics. The usual way I draw them is like this : ggplot(mtcars, aes(x=mpg, y=cyl))+ geom_bar(stat =…
magasr
  • 493
  • 5
  • 21
7
votes
1 answer

How can I set twoside, symmetric layout for bookdown::tufte_book2()

I'm using the fantastic new bookdown package, right off of Yihui's boilerplate, using the bookdown::tufte_book2() output. The result is lovely, but I'd like the pages to be symmetrical, so that the margins are always on the outside of a two-sided…
maxheld
  • 3,963
  • 2
  • 32
  • 51
6
votes
0 answers

floating TOC in tufte book

I am trying to do something simple: render the tufte options for a book using the basic bookdown example package. I can make the tufte style book fine, but I want it to have the floating TOC and not the TOC at the top Following the Definitive Guide…
Chip Brock
  • 81
  • 2
6
votes
0 answers

How to make Tufte-style sidenotes in Jupyter notebook?

I'm new to Jupyter notebooks, and also new to markdown. It seems like a very powerful tool for sharing blended python code and text. One thing I'd like to be able to do is to use Tufte-style formatting for sidenotes using the markdown…
Adam B
  • 3,662
  • 2
  • 24
  • 33
5
votes
1 answer

Can I align body text with margin note?

I'm using the tufte R package to create an html document with margin notes. Some of my margin notes are figures that are fairly tall. For example: --- title: Big sidenote output: tufte::tufte_html: default --- ```{r…
Sean Raffuse
  • 186
  • 8
5
votes
1 answer

Tufte-style beamer presentations in Rmarkdown?

I'd love to make "beamer presentations" Tufte-style in Rmarkdown. There I can put in the YAML header either output: beamer_presentation or output: tufte::tufte_html: default tufte::tufte_handout: citation_package: natbib …
jay.sf
  • 60,139
  • 8
  • 53
  • 110
5
votes
1 answer

Change the position of a table caption (tufte_handout)

This is a R -> latex question. I use tufte_handout I need to put the caption of a fullwidth table below the table, in the margin, because the table is too wide. here is the Rmarkdown file --- title: "Untitled" author: "A. Nonymous" date:…
user1788720
  • 327
  • 2
  • 11
5
votes
1 answer

a Pythonic way to draw a bump chart

I have a csv file that contains data I want to represent using a bump chart (as an example ) http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003nk BUT I need to have some control over the formatting and would like to approach this in…
theakson
  • 502
  • 7
  • 23
4
votes
0 answers

Text wrapping in code sections using Tufte format

Text in the code section of a Tufte formatted, Rmarkdown document does not seem to wrap. I have tried several options and suggestions, but nothing works. I am guessing that all of the other suggestions I could find on StackOverflow did not work,…
Mark Bower
  • 569
  • 2
  • 16
1
2 3 4