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
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
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
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
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 »
PLS Path Modeling with R
Today I’m very happy and so excited to announce my new book PLS Path Modeling with R, freely available in pdf format at: http://www.gastonsanchez.com/PLS_Path_Modeling_with_R.pdf After working and writing insanely for a couple of months in the last quarter of 2012, I’ve finally achieved this personal milestone that means so much to me. What started as a … Continue reading »
Creating HTML5 slides with RStudio, knitr and pandoc
Lately I’ve been spending some time learning how to create slides using HTML5. The good news for R users is that we can generate our html5 slides with Rstudio, knitr and pandoc. The not so good news is that, as usual, the learning curve can be relatively steep for newbies, inexperienced users, or html5 illiterate … Continue reading »
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 »
My PLStroika and some thoughts on developing R packages
I’ve been using R on a daily basis for more than seven years, and I’ve been developing R packages over the last three years. I consider myself an experienced useR and most of my coworkers consider me an R master. However, there are still a lot of things that I don’t know about R. To be … Continue reading »
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 »