Column-wise operations: group means

Column-wise operations: group means

In a previous post I described different options in R to do some calculations using tapply, ddply, and sqldf. I used a simple example in which the goal was to apply a function by groups on some data. More specifically: how to calculate the average of a single variable taking into account a grouping variable … Continue reading »

Arc Diagrams in R: Les Miserables

Arc Diagrams in R: Les Miserables

In this post we will talk about the R package “arcdiagram” for plotting pretty arc diagrams like the one below: Arc Diagrams An arc diagram is a graphical display to visualize graphs or networks in a one-dimensional layout. The main idea is to display nodes along a single axis, while representing the edges or connections … Continue reading »

Star Wars Arc Diagram

Star Wars Arc Diagram

The following content is a supplement post for my other post: Arc Diagrams in R: Les Miserables Arc Diagrams Motivation I don’t know for sure when was the first time I saw the Similar Diversity arc diagram by Philipp Steinweber and Andreas Koller (it must have been somewhere at the end of 2009 or at … Continue reading »

7 Functions to do Metric Multidimensional Scaling in R

7 Functions to do Metric Multidimensional Scaling in R

In this post we will talk about 7 different ways to perform a metric multidimensional scaling in R. Multidimensional Scaling Multidimensional Scaling (MDS), is a set of multivariate data analysis methods that are used to analyze similarities or dissimilarities in data. One of the nice features of MDS is that it allows us to represent … Continue reading »

Gauge Chart in R

Gauge Chart in R

How to replicate a google gauge chart in R? Google charts has several options to produce nice graphics. Most of them have their equivalent function in R and can be quickly replicated, but some of them require a bit of programming. For instance, take the google gauge charts which I really like: A gauge is … Continue reading »

The plspm is dead. Long live the plspm!

The plspm is dead. Long live the plspm!

After one month and a half or so of intense work, due diligence, and heavy duty maintenance, I finally completed the first phase of my PLStroika project. As some of you may know, I decided to do a major restructure of my package plspm. As a result, there are now two more tools related to … Continue reading »

5 functions to do Multiple Correspondence Analysis in R

5 functions to do Multiple Correspondence Analysis in R

Today is the turn to talk about five different options of doing Multiple Correspondence Analysis in R (don’t confuse it with Correspondence Analysis). Put in very simple terms, Multiple Correspondence Analysis (MCA) is to qualitative data, as Principal Component Analysis (PCA) is to quantitative data. Well, maybe I’m oversimplifying a little bit because MCA has some … Continue reading »