tufte

Line breaks in R Markdown text (not code blocks)

我是研究僧i 提交于 2020-06-24 06:13:30
问题 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 style Edward Tufte uses in his books... but get this result: I have tried \n in place of the second pair of spaces (**) as well, but pandoc throws an error. pandoc.exe: Error producing PDF from TeX source Error: pandoc document conversion failed

How to center LaTeX xtable (And Figure) output in full text width

若如初见. 提交于 2020-01-07 02:24:50
问题 This is a follow-up to a question I posted earlier (How to center LaTeX xtable output in full text width). I realize that my MWE from this previous post was incomplete. In an effort to make it as minimal of an example as possible, I did leave out something that ended up conflicting. Hence, here, I am posting the issue more fully. I am using tufte-handout (http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/tufte-latex/sample-handout.pdf) to create a small report in latex. I have a file code

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

梦想与她 提交于 2019-12-29 18:44:32
问题 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, sub=c(1:23),outer.margin = unit(c(2, 2, 2, 2), "cm")) and the resulting plot: I seem to be able to completely suppress the y-axis with sparklines(gamma.df, sub=c(1:23),yaxis=FALSE,outer.margin = unit(c(2, 2, 2, 2), "cm")) But what I really want is

How to change the font colour used inside the chunks when building a tufte book using bookdown?

℡╲_俬逩灬. 提交于 2019-12-24 11:27:38
问题 I am trying to build a book, with 9 chapters. I am using the bookdown::bookdown_site package for that, which I have included in the YAML header in index.Rmd. But when I knit the book, using bookdown::tufte_book2, the pdf file generate the text inside the chunks with different font colors. When I try to run each chapter individually, using "tufte_handout", the outcome is as expected. Main text and inside chunk text is monochrome and TimesNewRoman. In rStudio, before build the book, I have

Sparklines in ggplot2

与世无争的帅哥 提交于 2019-12-03 04:18:51
问题 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 Tufte in R (self-promotion not intended). My goal now is to replicate Tufte sparklines in ggplot2 . There are some scripts floating around on Gist and also as a reply to this question on SO, but none of those give a solid base for making

Sparklines in ggplot2

怎甘沉沦 提交于 2019-12-02 17:36:43
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 Tufte in R (self-promotion not intended). My goal now is to replicate Tufte sparklines in ggplot2 . There are some scripts floating around on Gist and also as a reply to this question on SO , but none of those give a solid base for making replicable sets of sparklines. Now, I would like those multiple sparklines to look like this (it was done in

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

筅森魡賤 提交于 2019-11-30 00:23:49
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, sub=c(1:23),outer.margin = unit(c(2, 2, 2, 2), "cm")) and the resulting plot: I seem to be able to completely suppress the y-axis with sparklines(gamma.df, sub=c(1:23),yaxis=FALSE,outer.margin = unit(c(2, 2, 2, 2), "cm")) But what I really want is just shrink the numbers at the tick marks (and add grey fill under the line, but it looks like I'd have

Functions available for Tufte boxplots in R?

半城伤御伤魂 提交于 2019-11-27 00:47:34
问题 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 = cut(ChickWeight$Time,4) ) cw$Chick <- as.factor( sample(LETTERS[seq(3)], nrow(cw), replace=TRUE) ) levels(cw$Diet) <- c("Low Fat","Hi Fat","Low Prot.","Hi Prot.") I want a boxplot of weight for every Diet * Time * Chick grouping. I had this problem come up