Category Archives: R

Curious rounding in R

Sometimes R has a misleading way of displaying values.  Check out this series of commands: > 1111+.5 [1] 1111.5 > 11111+.5 [1] 11111.5 > 111111+.5 [1] 111111.5 > 1111111+.5 [1] 1111112 > 11111111+.5 [1] 11111112 At first I thought that … Continue reading

Posted in commands, PhD, R | Leave a comment

Adjusting point size in R plots.

The trick here is to manage the pch and cex arguments in the plot function.  You can look at more information on these arguments in ?plot, ?par and ?points in the R environment (search for cex and pch).  In general … Continue reading

Posted in commands, R | 2 Comments

How to output an eps figure in R

If you are executing a plot command in a R script it should default to generating a pdf document with your plot.  This is really cool because you don’t really have to think about how to show what you have … Continue reading

Posted in commands, PhD, R | Leave a comment