154 search results for "heatmap"

R: heatmaps with gplots

April 8, 2010
By
R: heatmaps with gplots

I use heatmaps quite a lot for visualizing data, microarrays of course but also DNA motif enrichment, base composition and other things. I particular like the heatmap.2 function of the gplots package. It has a couple of defaults that are a little ugly ...

Read more »

ggplot2: Quick Heatmap Plotting

January 25, 2010
By
ggplot2: Quick Heatmap Plotting

A post on FlowingData blog demonstrated how to quickly make a heatmap below using R base graphics. This post shows how to achieve a very similar result using ggplot2. Data Import FlowingData used last season’s NBA basketball statistics provided by databasebasketball.com, and the csv-file with the data can be downloaded directly from its website. >

Read more »

TURF Analysis: A Bad Answer to the Wrong Question

September 29, 2014
By
TURF Analysis: A Bad Answer to the Wrong Question

Now that R has a package performing Total Unduplicated Reach and Frequency (TURF) Analysis, it might be a good time to issue a warning to all R users. DON'T DO IT!The technique itself is straight out of media buying from the 1950s. Given some number of...

Read more »

How to publish R and ggplot2 to the web

September 23, 2014
By
How to publish R and ggplot2 to the web

by Matt Sundquist, Plotly Co-founder It's delightfully smooth to publish R code, plots, and presentations to the web. For example: Shiny makes interactive apps from R. Pretty R highlights R code for HTML. Slidify makes slides from R Markdown. Knitr and RPubs let you publish R Markdown docs. GitHub and devtools let you quickly release packages and collaborate. Now,...

Read more »

In case you missed it: August 2014 Roundup

September 5, 2014
By

In case you missed them, here are some articles from August of particular interest to R users: R is the most popular software in the KDNuggets poll for the 4th year running. The frequency of R user group meetings continues to rise, and there are now 147 R user groups worldwide. A video interview with David Smith, Chief Community...

Read more »

Attention Is Preference: A Foundation Derived from Brand Involvement Segmentation

September 1, 2014
By
Attention Is Preference: A Foundation Derived from Brand Involvement Segmentation

"A wealth of information creates a poverty of attention."Herbert SimonWe categorize our world so that we can ignore most of it. In order to see figure, everything else must become ground. Once learned, the process seems automatic, and we forget how har...

Read more »

5 Ways to Do 2D Histograms in R

September 1, 2014
By
5 Ways to Do 2D Histograms in R

Introduction Lately I was trying to put together some 2D histograms in R and found that there are many ways to do it, with directions on how to do so scattered across the internet in blogs, forums and of course, Stackoverflow.As such I thought I'd give each a go and also put all of them together here...

Read more »

Continuous or Discrete Latent Structure? Correspondence Analysis vs. Nonnegative Matrix Factorization

August 25, 2014
By
Continuous or Discrete Latent Structure? Correspondence Analysis vs. Nonnegative Matrix Factorization

A map gives us the big picture, which is why mapping has become so important in marketing research. What is the perceptual structure underlying the European automotive market? All we need is a contingency table with cars as the rows, attributes as the ...

Read more »

Quantitative Finance applications in R – 8

August 12, 2014
By
Quantitative Finance applications in R – 8

The latest in a series by Daniel Hanson Introduction Correlations between holdings in a portfolio are of course a key component in financial risk management. Borrowing a tool common in fields such as bioinformatics and genetics, we will look at how to use heat maps in R for visualizing correlations among financial returns, and examine behavior in both a...

Read more »

Customer Segmentation Using Purchase History: Another Example of Matrix Factorization

August 2, 2014
By
Customer Segmentation Using Purchase History: Another Example of Matrix Factorization

As promised in my last post, I am following up with another example of how to perform market segmentations with nonnegative matrix factorization. Included with the R package bayesm is a dataset called Scotch containing the purchase history for 21 brands of whiskey over a one year time period from 2218 respondents. The brands along with some features...

Read more »