Articles by Yihui Xie

Visiting FHCRC, JHSPH and Meeting Xi’an

October 29, 2012 | Yihui Xie

I have been traveling during the last two weeks. I visited Fred Hutchinson Cancer Research Center on Oct 16 and the Department of Biostatistics at Johns Hopkins at the invitation of Simply Statistics on Oct 23. Today Christian Robert was visiting our department at Iowa State, and I also talked to him. ... [Read more...]

Build Static HTML Help Pages for R Packages

October 29, 2012 | Yihui Xie

Many R users may still remember the good old days when we had static HTML documentation for R packages. That was probably before R 2.10.0 (in 2009). Then we had the fancy dynamic HTML help based on the built-in httpd server, but it has never really mad... [Read more...]

A Quick Note On Large 2D Data

October 3, 2012 | Yihui Xie

Two months ago I was told one of my old blog posts was borrowed to this post: Finding patterns in big data with SAS/GRAPH. I wrote my blog post four years ago just for fun. The over-plotting issue is pretty boring to me now, but what caught my attentio... [Read more...]

R Package Vignettes with Markdown

September 10, 2012 | Yihui Xie

What is the best resource to learn an R package? Many R users know the almighty question mark ? in R. For example, type ?lm and you will see the documentation of the function lm. If you know nothing about a package, you can take a look at the HTML help... [Read more...]

For the Stupid Password Rules at Iowa State

August 7, 2012 | Yihui Xie

The Fall semester is coming, which means it is time to log into several stupid systems to be prepared for the new semester. Time and time again I'm annoyed by the bullshit password rules at Iowa State University. I wrote to the IT staff once but no one... [Read more...]

Making Reproducible Research Enjoyable

June 25, 2012 | Yihui Xie

Note: this is a contributed article for the ICSA Bulletin and the basic idea can be summarized in this picture. It is hard to convince people to think about reproducible research (RR). There are two parts of difficulties: (1) tools used to be for ex... [Read more...]

How to Make HTML5 Slides with knitr

May 1, 2012 | Yihui Xie

One week ago I made an early announcement about the markdown support in the knitr package and RStudio, and now the version 0.5 of knitr is on CRAN, so I'm back to show you how I made the HTML5 slides. For those who are not familiar with markdown, you m... [Read more...]

Fancy HTML5 Slides with knitr and pandoc

April 22, 2012 | Yihui Xie

Karthik Ram gave an Introduction to R a couple of weeks ago, and I strongly recommend you to take a look at his cool HTML5 slides. I started trying HTML5 slides last year, and now it is difficult for me to go back to beamer, which I have used for ... [Read more...]

Ideas on A Really Fast Statistics Journal

March 15, 2012 | Yihui Xie

I was writing comments on the blog post A proposal for a really fast statistics journal, and I realized the comment box was too small to write down my ideas. I like the proposal a lot, and I feel really bad about the current model of submitting and rev... [Read more...]

Sweave and pgfSweave in LyX 2.0.x (experimental)

May 25, 2011 | Yihui Xie

bout half a year ago, I wrote a post on the configuration of (pgf)Sweave and LyX, which was intended to save us some efforts in going through all the details during the configuration. Now many things have changed: LyX 2.0 has internal support for Sweave, and fortunately I have been ... [Read more...]

Produce Authentic Math Formulas in R Graphics

April 30, 2011 | Yihui Xie

I remember a few weeks ago, there was a challenge in the R-help list to make the prime symbol in R graphics. In LaTeX, we simply write $X'$ or $X^\prime$. R has a rough support for math expressions (see demo(plotmath)) and they are certainly unsatisfactory for LaTeX users. ... [Read more...]

formatR update (0.1-6)

January 6, 2011 | Yihui Xie

A new version of the formatR package is available on CRAN now (binary packages are still on the way). There are three major updates: the inline comments will also be preserved in most cases (in earlier versions, only single lines of comments are preserved) tidy.source() gained a new argument ... [Read more...]

Customizing the Theme of Your R HTML Help

January 4, 2011 | Yihui Xie

R’s default theme of the HTML help pages is too plain for me to read, but we can easily modify the theme, which is essentially a CSS file. You can find the file under: file.path(R.home('doc'), 'html', 'R.css') Simply replace this file with my version: ...
[Read more...]

Happy New Year with R (2011, Fireworks!)

January 1, 2011 | Yihui Xie

Last year I posted an animation created in R to celebrate the new year, and this year I've got a more fabulous animation (available on CRAN) The above animation comes from the demo('fireworks') in the R package animation 2.0-0. Thanks for the contri... [Read more...]

A Special Graphics Device in R: the Null Device

December 22, 2010 | Yihui Xie

It is well-known that R has several graphics devices — either the screen devices (X11(), windows(), …) or the off-screen devices (pdf(), png(), …). We can query the default graphics device in options(): getOption('device') In a non-interactive session, the default device is pdf(). This is why Sweave has to create a file ... [Read more...]
1 2 3 4

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)