Shiny, R, d3 Adaptation of Mike Bostock’s Calendar

December 13, 2012
By
Shiny, R, d3 Adaptation of Mike Bostock’s Calendar

The idea with all the posts http://timelyportfolio.blogspot.com/search/label/shiny was to learn both d3 and shiny by iterating through multiple experiments.  This example adaptation was my quickest yet at about 30 minutes.  Mike Bostock had d...

Read more »

Mapping GPS Tracks in R

December 13, 2012
By
Mapping GPS Tracks in R

This is an explanation of how I used R to combine all my GPS cycling tracks from my Garmin Forerunner 305.Converting to CSVYou can convert pretty much any GPS data to .csv by using GPSBabel. For importing directly from my Garmin, I used the comman...

Read more »

Testing Assumption Testing

December 13, 2012
By
Testing Assumption Testing

I’ve been doing a lot of linear modeling this year. That’s not much different than any ordinary year, but now I’m doing it in R. I had spent a bit of time in recent years trying to look at loss reserving as a multivariate regression. Excel is happy to do that, but testing various predictor

Read more »

Political revolutions on Twitter, visualized with R

December 13, 2012
By

Twitter has become a powerful medium for organizing and communicating with factions during popular uprisings: the crisis in Egypt, the uprising in Syria, the revolution in Iran, and other conflicts all around the world. Twitter's effectiveness relies on its ability for the various factions to self-organize and to fight the information battle in social media. Esteban Moro Egido, a...

Read more »

"R" : Identifying peaks

December 13, 2012
By
"R" : Identifying peaks

The function "identify"  from "R",  is very useful to check the spectrum for peaks or areas of interest. I use it here to see the wavelength with the highest variability in the Shootout-2012 Calibration Set. This wavelength has a high variabi...

Read more »

Community detection algorithm with igraph and R – (2)

December 13, 2012
By

In the last post I presented a slightly modified LPA algorithm from the igraph wiki. This algorithm needed around 40s for 10,000,000 edges and 1000 unique vertices. I promised, that one could do much better. Here you go!Iterators in igraphTo understand...

Read more »

Nataniele Argento

December 13, 2012
By
Nataniele Argento

Effectively, the Italian election campaign is already in full swing, so I tried to start collecting some data to see what we are about to face. If I have time and manage to get some good data, I'll try to replicate the analysis I made for the US election (surely Italy needs its own version of 

Read more »

Fuzzy clustering with fanny()

December 13, 2012
By
Fuzzy clustering with fanny()

This is kind of a fun example, and you might find the fuzzy clustering technique useful, as I have, for exploratory data analysis. In this Gist, I use the unparalleled breakfast dataset from the smacof package, derive dissimilarities from breakfast it...

Read more »

Creating 2011 Census Output Area Change Maps Using R

December 13, 2012
By
Creating 2011 Census Output Area Change Maps Using R

The 2001 Census used a different set of Output Areas (OA) than the current 2011 boundaries; reflecting changes in the spatial distribution of the underlying population. For example, if an area has become more heavily populated since 2001, it makes sense that a previous OA might be split into multiple new segments. The ONS have provided

Read more »

Creating 2011 Census Output Area Change Maps Using R

December 13, 2012
By
Creating 2011 Census Output Area Change Maps Using R

The 2001 Census used a different set of Output Areas (OA) than the current 2011 boundaries; reflecting changes in the spatial distribution of the underlying population. For example, if an area has become more heavily populated since 2001, it makes sense that a previous OA might be split into multiple new segments. The ONS have provided both...

Read more »

Is invasive?

December 13, 2012
By
Is invasive?

The Global Invasive Species Database (GISD) (see their website for more info here) has data on the invasiveness status of many species. From taxize you can now query the GISD database. Introducing the function gisd_isinvasive. This function was contributed to taxize by Ignasi Bartomeus, a postdoc at the Swedish University Agricultural Sciences. There are two possible outputs from using...

Read more »

Is invasive?

December 13, 2012
By
Is invasive?

The Global Invasive Species Database (GISD) (see their website for more info here) has data on the invasiveness status of many species. From taxize you can now query the GISD database. Introducing the function gisd_isinvasive. This function was contributed to taxize by Ignasi Bartomeus, a postdoc at the Swedish University Agricultural Sciences. There are two possible outputs from using...

Read more »

Creating 2011 Census Output Area Change Maps Using R

December 12, 2012
By
Creating 2011 Census Output Area Change Maps Using R

The 2001 Census used a different set of Output Areas (OA) than the current 2011 boundaries; reflecting changes in the spatial distribution of the underlying population. For example, if an area has become more heavily populated since 2001, it makes sense that a previous OA might be split into multiple new segments. The ONS have provided both...

Read more »

more d3 with shiny and R (CPI from bls.gov)

December 12, 2012
By
more d3 with shiny and R (CPI from bls.gov)

Extending the marginal success achieved in d3 Showreel Combined with R and Shiny  d3 and r interacting through shiny I have converted http://bl.ocks.org/3891711 to use data supplied by an R load of http://bls.gov CPI data through Rstudio's Shin...

Read more »

In case you missed it: November 2012 Roundup

December 12, 2012
By

In case you missed them, here are some articles from November of particular interest to R users. In the webinar "Real-Time Predictive Analytics with Big Data", I showed how R fits into a real-time production system. R package developer Yihui Xie shares his favorite software and hardware in an interview with The Setup. Hadley Wickham created a handy tutorial...

Read more »

Survival of the sweetest

December 12, 2012
By
Survival of the sweetest

On receiving an advent calendar from one of our course directors, I suggested we could track each other’s chocolate consumption in a survival analysis and establish who was eating significantly more chocs. Strangely, everybody refused to take part, so I … Continue reading →

Read more »

How to plot a network (package network) – Tip 2

December 12, 2012
By
How to plot a network (package network) – Tip 2

As you have certainly seen now, I like working on artificial neural networks. I have written a few posts about models with neural networks (Models to generate networks, Want to win to Guess Who and Study of spatial segregation).Unfortunately, I missed ...

Read more »

Using R to refine the search result of www.finn.no

December 12, 2012
By
Using R to refine the search result of www.finn.no

www.finn.no is the most popular website in Norway. It supplies a lot of features, such as booking flight tickets, finding job, renting and sales of houses, cars and other properties, etc. I just have some experience with it. I sold and bought cars, apartment and some other stuff. It’s very convenient. But just one thing I feel not convenient:...

Read more »

Multidimensional metric unfolding with SMACOF

December 12, 2012
By
Multidimensional metric unfolding with SMACOF

SMACOF stands for “Scaling by MAjorizing a COmplicated Function,” and it is a multidimensional scaling algorithm for metric unfolding of, among other things, rectangular ratings matrices. One neat Political Science application of MDS is i...

Read more »

Exporting Data From R to KDB

December 12, 2012
By

Here is the beginnings of a simple routine to convert R data frames to Q format (in this case a dictionary). It uses the S3 dispatch mechanism to handle the conversion of different data types. Extremely basic (I havent even … Continue reading →

Read more »

French R Conference in Lyon – call for contributions

December 12, 2012
By
French R Conference in Lyon – call for contributions

La prochaine édition des Rencontres R aura lieu à Lyon en Juillet prochain. Ci-dessous, l’appel officiel à contributions. ————————————————– Appel à communication des 2èmes Rencontres R : Dans la lignée de la conférence internationale Use’R et suite à la première édition qui a eu lieu à Bordeaux

Read more »

project euler — problem 68

December 12, 2012
By
project euler — problem 68

Consider the following "magic" 3-gon ring, filled with the numbers 1 to 6, and each line adding to nine. Working clockwise, and starting from the group of three with the numerically lowest external node (4,3,2 in this example), each solution can be described uniquely. For example, the above solution can be described by the...

Read more »

Clarifying a Previous Item Response Theory Link

December 11, 2012
By

I wanted to thank those of you who have emailed and commented on my last post and its Link to Item Response Theory Presentations Using R.  In the Psychometrics Centre website, it is not until Topic 7 called Unidimensional IRT models for binar...

Read more »

Multidimensional scaling of REM album covers: FlagSpace revisited

December 11, 2012
By
Multidimensional scaling of REM album covers: FlagSpace revisited

By way of following up on an old in-joke, and doing something constructive because I couldn’t get to sleep, I thought I would revisit the Flag Space plot that I blogged about a while back and learn how to do it. … Continue reading →

Read more »

Videos from Coursera’s four week course in R

December 11, 2012
By

Coursera's Computing for Data Analysis course on R is now over, with four weeks of free, in-depth training on the R language. While you'll have to wait for the next installment of the course to participate in the full online learning experience, you can still view the lecture videos, courtesy of course presenter Roger Peng's YouTube page. The course...

Read more »

2012-12 Post-Processing grid Graphics

December 11, 2012
By

Statistical plots drawn with the ggplot2 package generate numerous grid grobs and viewports which are labelled and organised into a coherent hierarchy. This report describes an example that shows how to manipulate the grobs and viewports in a ggplot2 plot … Continue reading →

Read more »

Music Network Visualization

December 11, 2012
By
Music Network Visualization

Note: probably of interest only to the intersection of the readers who are into niche music genres and those interested in network visualization. My music interests have always been rather, hmm…, eclectic. Somehow IDM, ambient, darkwave, triphop, acid jazz, bossa … Continue reading →

Read more »

Estimating Pi

December 11, 2012
By

Recently I’ve been working on some jackknife and bootstrapping problems.  While working on those projects I figured it would be a fun distraction to take the process and estimate pi.  I’m sure this problem has been tackled countless times but I have never bothered to try it using a Monte Carlo approach.  Here is the

Read more »

Visualizing Baltimore 3.1: Crime and Vacant Properties, Neighborhood Level, Bit More Polished

December 11, 2012
By
Visualizing Baltimore 3.1: Crime and Vacant Properties, Neighborhood Level, Bit More Polished

Redos of the plots from this post: Bit more communicative, though the overplotting is a bit annoying. Code: ## gis libraries library(spBayes) library(MBA) library(geoR) library(fields) library(sp) library(maptools) library(rgdal) library(classInt) library(lattice) library(xtable) library(spatstat) library(splancs)   ## Other packages library(ggplot2) library(foreign) library(stringr)...

Read more »

Sponsors

Mango solutions



RStudio homepage



Zero Inflated Models and Generalized Linear Mixed Models with R

Dommino data lab

Quantide: statistical consulting and training



http://www.eoda.de





ODSC

ODSC

CRC R books series





Six Sigma Online Training





Contact us if you wish to help support R-bloggers, and place your banner here.