Showing posts with label graph. Show all posts
Showing posts with label graph. Show all posts
Saturday, December 01, 2018
Sunday, August 02, 2015
Tuesday, November 20, 2012
Extra themes for ggplot2
Ggthemes is a new package that provides additional themes for ggplot2. It can even be used to draw a Stata-like graph. I particularly like the Tufte-style, as outlined in The Visual Display of
Quantitative Information.
Tuesday, September 27, 2011
Thursday, August 04, 2011
Interaction effect plot
I am glad to find out that the "effects" package can now handle mixed effect model results from "lme4".
Tuesday, February 15, 2011
Friday, January 21, 2011
Tuesday, November 30, 2010
Wrapping text around figures in LaTeX
I found this page very helpful in showing how to create figures with text wrapping around. And this one for making tables.
I am using the LaTeX package by Bruce Donald for my next NIH proposal.
I am using the LaTeX package by Bruce Donald for my next NIH proposal.
Friday, October 29, 2010
Ggplot2, some tricks
Here is how to remove the grey in the background as well as the grid, a modification of the default black/white theme.
Thursday, October 28, 2010
Friday, October 22, 2010
Useful blog
Wednesday, October 20, 2010
The "tikzDevice" package
The tikzDevice package is quite amazing. Here are two graphs I just made, with (lower) and without (upper) using the tikzDevice package. The difference in quality is huge.
Since the LaTeX source file for the figure is quite large in size and may take significantly longer to compile, it makes sense to export the file into PDF file and include in the main LaTeX file in the usual way. That way, one gets the pleasing effect produced by TikZ and does not suffer from longer compilation time.
Also, the package "pgfSweave" is also very helpful if one wants to combine R sessions with LaTeX session.
Here is a tikz editor that works great on my 32-bit Ubuntu box but cannot be compiled on my 64-bit box. It can produce PDF, EPS, and PNG files directly from LaTeX code. TpX is another editor for tikz. It is currently Windows-only but a alpha version based on Lazarus is under development.
Some additional information is provided by this post.
Since the LaTeX source file for the figure is quite large in size and may take significantly longer to compile, it makes sense to export the file into PDF file and include in the main LaTeX file in the usual way. That way, one gets the pleasing effect produced by TikZ and does not suffer from longer compilation time.
Also, the package "pgfSweave" is also very helpful if one wants to combine R sessions with LaTeX session.
Here is a tikz editor that works great on my 32-bit Ubuntu box but cannot be compiled on my 64-bit box. It can produce PDF, EPS, and PNG files directly from LaTeX code. TpX is another editor for tikz. It is currently Windows-only but a alpha version based on Lazarus is under development.
Some additional information is provided by this post.
Tuesday, April 20, 2010
Friday, February 05, 2010
Graphics using Stata vs. R
Here is an informative blog post comparing simple histogram produced using Stata and various methods using R.
Saturday, December 05, 2009
Cool photo gallary: operating systems
http://www.operating-system.org/betriebssystem/_english/os-screenshots.htm
Friday, October 30, 2009
Inkscape is a handy tool
Inkscape (http://www.inkscape.org/) is a free software package for graphics. It reads a large number of graphics formats including eps and pdf, and allows one to modify them and output to a large number of different graphics formats.
Thursday, October 29, 2009
Sunday, June 28, 2009
Graph with two axes
In R: http://robjhyndman.com/index.php?option=com_content&view=article&id=233:r-graph-with-two-y-axes&catid=32:mbr&Itemid=103
In Stata: http://www.ats.ucla.edu/stat/stata/library/GraphExamples/code/twobar.htm
Also, R package "plotrix" has a function "twoord.plot" designed specifically for this.
In Stata: http://www.ats.ucla.edu/stat/stata/library/GraphExamples/code/twobar.htm
Also, R package "plotrix" has a function "twoord.plot" designed specifically for this.
Wednesday, December 17, 2008
Stata and R graph examples
- Stata graph gallery: http://www.ats.ucla.edu/stat/stata/library/GraphExamples/default.htm;
- R graph gallery: http://addictedtor.free.fr/graphiques/allgraph.php
Subscribe to:
Posts (Atom)

