Category Archives: R

Plotting time graphs in R

Share    Send article as PDF   

Share

R - frequency histogram with normal curve

Creating a histogram in R is a piece of cake. But often times, you'll want to take a look at the gaussian distribution that your data may represent. It's easy enough to look at the frequency histogram separately from the gaussian, but what if we want to overlay the gaussian on top of the histogram?… Read More »

Share

R - color scatterplot points by density

Motivation If you've ever had lots of data to examine via a scatterplot, you may find it difficult due to overlapping points. For example, let's examine the following attempt to look at some (x,y) data. Impossible to understand, right? Solution Here's a much better solution. We will now color the points by their density. And… Read More »

Share

R - Creating a heatmap from scatterplot data

Here's the code and the image it produces. (Full explanation of each line is below) For those that want the full tutorial, read from here: Suppose you have some (x,y,z) data and wish to plot it. Perhaps you have weather data for a grid layout of a city. Whatever the data may be, it's common… Read More »

Share