« R Graph Gallery | Main | Statistics and the Superbowl »

January 30, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a010534b1db25970b010537049502970c

Listed below are links to weblogs that reference 10 tips for making your R graphics look their best:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Nice post! I would, however, recommend using a PNG optimizer, such as OptiPNG to reduce the filesize of PNG files. Here is an example:

$ optipng mygraphic.png

OptiPNG 0.5.5: Advanced PNG optimizer.

Copyright (C) 2001-2007 Cosmin Truta.



** Processing: mygraphic.png

400x350 8-bit palette non-interlaced

The image is losslessly reduced to 1-bit palette

Input file size = 1651 bytes

Output file size = 689 bytes (962 bytes = 58.27% decrease)

If you make a pdf (tip #3), how do you place that graphic in another document (e.g. in MS word)? I usually make PNGs and then "insert a picture". But, as you say, the printed version never looks as nice.

Never mind my previous comment. I'm an idiot; don't know how I managed to skip tip #4 which addresses the very issue. :-/

Wcyee, you also might like to take a look at the win.metafile() graphics device. Like the postscript() device, it generates vector graphics, so you don't have to worry about pixel resolutions and it should result in good printed output. I have heard that Windows applications like Word will display a Windows MetaFile graphics on-screen, but I don't have Windows and so can't check. But it might be worth a try.

Cool, thanks for the tip, David. I'll definitely give it a shot since this is something that has bugged me for a while now.

Hi,
wow from the comments alone i got so many interesting Tutorials..thank you for writing this article...

This algorithm is definitely going to reduce the amount and effort for displaying a beautiful statistical graphic in R without much coding work.

Excellent Post--very helpful indeed.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Got comments or suggestions for the blog editor?
Email David Smith.

R links

Recommended Sites

Search Revolutions Blog