Add Text Annotations to ggplot2 Faceted Plot (an easier approach)

September 6, 2012
By
Add Text Annotations to ggplot2 Faceted Plot (an easier approach)

I recently posted a blog about adding text to a ggplot2 faceted plot (LINK). I was unhappy with the amount of time it takes to create the text data frame to then label the plot. And then yesterday when the … Continue reading →

Read more »

RcppArmadillo 0.3.4.0

September 6, 2012
By

A new major released of Armadillo came out earlier today. I prepared the corresponding RcppArmadillo package 0.3.4.0 which also arrived on CRAN earlier today. This released contains a few performance improvements, the beginnings of support of sparse matrices and more, see below. We also post the NEWS entry for the beta release which was prepared, but not uploaded to CRAN to...

Read more »

Kickstarter facilitates $50M in indie game funding

September 6, 2012
By
Kickstarter facilitates $50M in indie game funding

The social crowdfunding site Kickstarter announced today that it has enabled, via community contributions, $50M in funding in 2012 for new indie games. The second largest category of funding was for independent films. The blog post announcing the news includes analysis (using R, natch) of the breakdown in categories and funding sources. On a personal note, two Kickstarter projects...

Read more »

New Book on Probability with R

September 6, 2012
By

My first book on probability is completed. HTML version is freely available at theanalysisofdata.com and print version coming soon at a discounted price. Also, check out chapters 4 and 5 (available in pdf format) of the upcoming second volume on R programming and R graphics. http://theanalysisofdata.com/probability/viewer1.html (single page viewer) http://theanalysisofdata.com/probability/viewer2.html (two page viewer) http://theanalysisofdata.com/probability/0/0-2.pdf (table

Read more »

Get Long-Term Climate Data from KNMI Climate Explorer

September 6, 2012
By
Get Long-Term Climate Data from KNMI Climate Explorer

You can query global climate data from the KNMI Climate Explorer (the KNMI is the Royal Netherlands Metereological Institute) with R.Here's a little example how I retreived data for my hometown Innsbruck, Austria and plotted annual total precipitation....

Read more »

Kickfollower launches!

September 6, 2012
By

Hi internet, we’re happy to be here. We’ll be covering a range of topics in this blog — we’ll talk to inventors and creative people as they launch their projects from Kickstarter and IndieGoGo, we’ll talk about the crowd-funding industry and where it’s headed, and we’ll dig into the details of pricing and success rates … Continue reading...

Read more »

In case you missed it: August 2012 Roundup

September 6, 2012
By

In case you missed them, here are some articles from June of particular interest to R users. RStan is a new package for Bayesian modeling with R. It's faster and can fit more highly-correlated models than the MCMC sampler of BUGS and JAGS. Biostatistician Corey Chivers used R to animate the epidemic-like growth of retailer Walmart in the US....

Read more »

The future of Artificial Intelligence – as imagined in 1989

September 6, 2012
By
The future of Artificial Intelligence – as imagined in 1989

This image comes from the cover of Preliminary Papers of the Second International Workshop on Artificial Intelligence and Statistics (1989). Someone abandoned it in the lobby of my building at school. Whatever for, I’ll never know. I just love the idea of machine learning/AI/Statistics evoking a robot hand drawing a best fit line through some

Read more »

Export R plot to Illustrator or Inkscape

September 6, 2012
By
Export R plot to Illustrator or Inkscape

Have you ever exported an R plot as a PDF and tried to edit it further by importing the PDF into a vector graphics program like Adobe Illustrator or Inkscape? What typically happens is the points on the plot get...

Read more »

BaselR meetup

September 6, 2012
By

Mango Solutions host BaselR, a free, open and informal R user group for those using or interested in using R. There will be a few short R related presentations and an opportunity to meet and chat with other R users over a drink. Date: Thursday 13th September at 6.30pm. Venue : transBarent, Viaduktstrasse 3, Basel (by the train station)...

Read more »

Inference and autoregressive processes

September 6, 2012
By
Inference and autoregressive processes

Consider a (stationary) autoregressive process, say of order 2, for some white noise with variance . Here is a code to generate such a process, > phi1=.5 > phi2=-.4 > sigma=1.5 > set.seed(1) > n=240 > WN=rnorm(n,sd=sigma) > ...

Read more »

Visually weighted/ Watercolor Plots, new variants: Please vote!

September 6, 2012
By
Visually weighted/ Watercolor Plots, new variants: Please vote!

Update Oct-23: Added a new parameter add to the function. Now multiple groups can be plotted in a single plot (see example in my comment) As a follow-up on my R implementation of Solomon’s watercolor plots, I made some improvements to the function. I fine-tuned the graphical parameters (the median smoother line now diminishes faster

Read more »

Comparing Stan to JAGS for Bayesian Inference (Part 1?)

September 5, 2012
By
Comparing Stan to JAGS for Bayesian Inference (Part 1?)

Stan is a new, open source, Bayesian inference tool. Stan is based on the the No-U-Turn sampler, a variant of Hamiltonian Monte Carlo. In order to compare Stan with JAGS, a gibbs sampler approach to Bayesian inference, I used the classic WinBUGS rats example. The rats example uses a hierarchical model to look at...

Read more »

Suicide statistics and the Christchurch earthquake

September 5, 2012
By
Suicide statistics and the Christchurch earthquake

Suicide is a tragic and complex problem. This week New Zealand’s Chief Coroner released its annual statistics on suicide, which come with several tables and figures. One of those figures refers to monthly suicides in the Christchurch region (where I … Continue reading →

Read more »

K-means in images and R

K-means in images and R

In an image each pixel is a color and that color hava a RGB representation, this means each color is represented by a triplet. For example the red in this representation is (250, 0, 0), black is (0,0,0) and white is (250, 250, 250) (see here more ...

Read more »

Graphically Comparing Confidence Intervals From Different Models

September 5, 2012
By

(This article was first published on Christopher Gandrud (간드루드 크리스토파), and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on their blog: Christopher Gandrud (간드루드 크리스토파). R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps,...

Read more »

A Return to Reliable R

September 5, 2012
By
A Return to Reliable R

The saga with Statistica continues: Statistica kept crashing on me while doing my data processing.  One of the big problems was a wonderful bug that occurred when some of my text data variables were coded (unsurprisingly) as text!  Under this … Continue reading →

Read more »

Style your ggplot2 charts with Themes

September 5, 2012
By
Style your ggplot2 charts with Themes

An update to the ggplot2 "grammar of graphics" package for R is now available on CRAN. This version introduces "Themes" for ggplot2 charts, and makes it possible to define and re-use your own preferences for title fonts and sizes, tick marks, grid color, etc. The system is heirarchically defined, so for example you can choose a font and have...

Read more »

Near-instant high quality graphs in R

September 5, 2012
By
Near-instant high quality graphs in R

One of the main attractions of R (for me) is the ability to produce high quality graphics that look just the way you want them to. The basic plot functions are generally excellent for exploratory work and for getting to know your data. Most packages have additional functions for appropriate exploratory work or for summarizing

Read more »

Near-instant high quality graphs in R

September 5, 2012
By
Near-instant high quality graphs in R

One of the main attractions of R (for me) is the ability to produce high quality graphics that look just the way you want them to. The basic plot functions are generally excellent for exploratory work and for getting to know your data. Most packages have additional functions for appropriate exploratory work or for summarizing

Read more »

BMS 0.3.1 Released

September 5, 2012
By

Version 0.3.1 of the BMS package for Bayesian Model Averaging has been released. This is a maintenance release for compliance with recent CRAN guidelines. The BMS package therefore is again available on CRAN in addition to bms.zeugner.eu. Changes with...

Read more »

Animated Images of Arctic Sea Ice Extent Decline

September 5, 2012
By
Animated Images of Arctic Sea Ice Extent Decline

This post shows how to download and animate a series of Arctic Sea Ice Extent images using R and the animation package. In my previous post, I showed how to download the daily arctic sea ice extent  data and generate … Continue reading →

Read more »

Thalesians, and other events

September 5, 2012
By
Thalesians, and other events

Featured Thalesians, London 2012 September 12. Chia Tan on “Practical Financial Modeling”. Abstract: Financial modelling is not a competition in the mastery of complexity. Rather, the aim is to come up with the simplest models adequate to capture salient market features of traded products. There exists a wide gulf between material covered by traditional books … Continue reading...

Read more »

Kendall’s Tau

September 5, 2012
By

Kendall’s Tau This is an example of Kendall’s Tau rank correlation.  This is similar to Spearman’s Rho in that it is a non-parametric measure of correlation on ranks.  It is an appropriate measure for ordinal data and is fairly straight forward when there are no ties in the ranks. When ties do exist then variations

Read more »

Amazing fMRI plots for everybody!

September 5, 2012
By
Amazing fMRI plots for everybody!

Dear valued customer, it is a well-known scientific truth that research results which are accompanied by a fancy, colorful fMRI scan, are perceived as more believable and more persuasive than simple bar graphs or text results (McCabe & Castel, 2007; Weisberg, Keil, Goodstein, Rawson, & Gray, 2008). Readers even agree more with fictitious and unsubstantiated

Read more »

Interactive web graphs with R – Overview and googleVis tutorial

September 5, 2012
By
Interactive web graphs with R – Overview and googleVis tutorial

Today I feel very lucky, as I have been invited to the Royal Statistical Society conference to give a tutorial on interactive web graphs with R and googleVis. I prepared my slides with RStudio, knitr, pandoc and slidy, similar to my Cambridge R talk. ...

Read more »

Merging Current Stock Quotes with Historical Prices

September 4, 2012
By
Merging Current Stock Quotes with Historical Prices

I got a question last week about going from the backtest to the trading. For example, if our system is based on today’s close, we can approximate the close value by the price at say 3:30pm, determine the signal and still have time enter the trade. It is not perfect, but one of possible solutions.

Read more »

Testing highlight.js with r code

I searched for a javascript plugin to highlighter code, but obviously not any code. I needed to higlight R. Finally I founded highlight.js. Highlights.js is pretty cool for many reasons. I like Highlights.js because: Support R lenguage....

Read more »

How to create random binary matrices in R

September 4, 2012
By

It all started off as a simple question from Scott Chamberlain on Twitter: Make m x n matrix with randomly assigned 0/1 -> apply(m, c(1,2), function(x) sample(c(0,1),1)) -- Better/faster solution? #rstats — Scott Chamberlain (@recology_) August 28, 2012 The goal was to create a matrix with randomly selected binary elements, and a predetermined number of rows and columns, that...

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.