Getting R plots into LaTeX?

I would recommend the tikzDevice package for producing output for inclusion in LaTeX documents: http://cran.r-project.org/web/packages/tikzDevice/index.html The tikzDevice converts graphics produced in R to code that can be interpreted by the LaTeX package tikz. TikZ provides a very nice vector drawing system for LaTeX. Some good examples of TikZ output are located at: http://www.texample.net/ The tikzDevice … Read more

What are the practical differences when working with colors in a linear vs. a non-linear RGB space?

Let’s say you’re working with RGB colors: each color is represented with three intensities or brightnesses. You’ve got to choose between “linear RGB” and “sRGB”. For now, we’ll simplify things by ignoring the three different intensities, and assume you just have one intensity: that is, you’re only dealing with shades of gray. In a linear … Read more

Ball to Ball Collision – Detection and Handling

To detect whether two balls collide, just check whether the distance between their centers is less than two times the radius. To do a perfectly elastic collision between the balls, you only need to worry about the component of the velocity that is in the direction of the collision. The other component (tangent to the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)