Web Analytics Visualization through ggplot2

July 1, 2013
By
Web Analytics Visualization through ggplot2

During our last webinar, we covered some of the basic ideas behind ggplot2, the R Visualization package by Dr. Hadley Wickham. In this blog post I will walk through the example that I covered during the webinar. In order to carry out the examples yourself, you may download the dummy datasets from this link Creating

Read more »

R and PostgreSQL – using RPostgreSQL and sqldf

July 1, 2013
By

PostgreSQL and R can often be used together for data analysis - PostgreSQL as database engine and R as statistical tool. In this article you will learn how to access data stored in PostgreSQL database and how to write the data back using RPostgreSQL an...

Read more »

Monitoring an ETF Portfolio in R

July 1, 2013
By
Monitoring an ETF Portfolio in R

Adam Duncan Also avilable on R-bloggers.com Some time ago, I read an interesting article about an interview with David Swensen, the renownd money manager from Yale University’s investment office. He’s quite famous and is considered by many to be the architect of the modern “endowment portfolio.” The point of the article was to suggest a way for ordinary...

Read more »

analyze the united states decennial census public use microdata sample (pums) with r and monetdb

July 1, 2013
By

during his tenure as secretary of state, thomas jefferson oversaw the first american census way back in 1790.  some of my countrymen express pride that we're the oldest democracy, but my heart swells with the knowledge that we've got the world's o...

Read more »

Exploratory Data Analysis – Kernel Density Estimation and Rug Plots on Ozone Data in New York and Ozonopolis

Exploratory Data Analysis – Kernel Density Estimation and Rug Plots on Ozone Data in New York and Ozonopolis

For the sake of brevity, this post has been created from the second half of a previous long post on kernel density estimation.  This second half focuses on constructing kernel density plots and rug plots in R.  The first half focused on the conceptual foundations of kernel density estimation. Introduction This post follows the recent

Read more »

Using R to Produce Scalable Vector Graphics for the Web

June 30, 2013
By
Using R to Produce Scalable Vector Graphics for the Web

Statistical software is normally used during the analysis stage of a project and a cleaned up static graphic is created for the presentation.  If the presentation is in web format then there are some considerations that are needed. The trick is to find ways to implement those graphs in that web format so the graph

Read more »

How pqR makes programs faster by not doing things

June 30, 2013
By
How pqR makes programs faster by not doing things

One way my faster version of R, called pqR (see updated release of 2013-06-28), can speed up R programs is by not even doing some operations. This happens in statements like for (i in 1:1000000) ..., in subscripting expressions like v, and in logical expressions like any(v>0) or all(is.na(X)). This is done using pqR’s internal “variant result” mechanism, which is

Read more »

Subscribing to updates from R-bloggers.com

June 30, 2013
By

Tomorrow (July 1, 2013), Google Reader will retire. I can imagine the shock this will be for the 5,821 followers of this site who uses Google Reader in order to followup on news and tutorials from the global R world. If you are have considering a more committed relationship with this site and didn’t know what to do –...

Read more »

Faster calculation

June 30, 2013
By

Last week I decided to speed up my distribution fitting functions of two weeks ago. These were bold words. My try of Rcpp was a failure. Just plain optimization helped a bit better. Using the compiler package added a bit. (the compiler package does not...

Read more »

Learning R: Parameter Fitting for Models Involving Differential Equations

June 30, 2013
By
Learning R: Parameter Fitting for Models Involving Differential Equations

It looks like MATLAB, Octave and Python seem to be the preferred tools for scientific and engineering analysis (especially those involving physical models with differential equations). However as part of my learning R experience, I wanted to check out some … Continue reading →

Read more »

An .EPS to .PDF converter (using LaTeX!)

June 30, 2013
By
An .EPS to .PDF converter (using LaTeX!)

I am about to go on a short holiday, so I was tidying the code lines I had scattered around before leaving… And I found this: a minimal EPS to PDF converter, which is barely a LaTeX template. It is … Sigue leyendo →

Read more »

R to GeoJSON

June 30, 2013
By

UPDATE As you can see in Patrick's comment below you can convert to GeoJSON format files with rgdal as an alternative to calling the Ogre web API described below. See here for example code for converting to GeoJSON with rgdal. GitHub recently introduced the ability to render GeoJSON files on their site as maps here, and recently...

Read more »

R to GeoJSON

June 30, 2013
By

GitHub recently introduced the ability to render GeoJSON files on their site as maps here, and recently introduced here support for TopoJSON, an extension of GeoJSON can be up to 80% smaller than GeoJSON, support for other file extensions (.topojson and .json), and you can embed the maps on other sites (so awesome). The underlying...

Read more »

R sucks

June 29, 2013
By

I was trying to make some new graphs using 5-year-old R code and I got all these problems because I was reading in files with variable names such as “co.fipsid” and now R is automatically changing them to “co_fipsid”. Or maybe the names had underbars all along, and the old R had changed them into The post R...

Read more »

Shiny Server on CentOS

June 29, 2013
By

I’ve been enjoying working with Joe Cheng’s Shiny Server and wanted to create a quick step-by-step guide on installing it on an AWS CentOS EC2 instance as the standard Shiny Server instructions assume the typical dependencies are installed: 1. Shiny’s instructions say to install libssl-dev (sudo yum install libssl-dev), here is the CentOS equivalent : sudo yum install openssl-devel

Read more »

Reproducing R: Scripts, Documents, and Packages

June 28, 2013
By

I’m sharing the slides from the talk I’ll be giving at the Dallas R Users Group on creating R packages (and other techniques for reproducing R). I’ll introduce R scripts, reproducible R documents, and R packages. We’ll use the knitr, devtools, and roxygen2 packages in the examples. Download the slides here. If you’re unable to

Read more »

Reproducing R: Scripts, Documents, and Packages

June 28, 2013
By

I’m sharing the slides from the talk I’ll be giving at the Dallas R Users Group on creating R packages (and other techniques for reproducing R). I’ll introduce R scripts, reproducible R documents, and R packages. We’ll use the knitr, devtools, and roxygen2 packages in the examples. Download the slides here. If you’re unable to

Read more »

Descending Text in Righthand Margin of R Graphics à la mtext

June 28, 2013
By
Descending Text in Righthand Margin of R Graphics à la mtext

There was an R-help thread in January regarding text in the righthand margin of an R graphic, where the text should be rendered in reading order from top to bottom. The base R function mtext is used to plot text in the margin. But, mtext is only able to render text from left to right

Read more »

rCharts Remake of NYT

June 28, 2013
By
rCharts Remake of NYT

For those wondering if I have forsaken finance, the answer is no.  I just don’t think there is much to do in here besides watch and wait.  So more d3 and R as I try to distract myself from doing something dumb in the markets. This time I used rCharts and slidify to  recreate another...

Read more »

Create Word documents from R with R2DOCX

June 28, 2013
By

If you work in a corporate environment, then the Word document format is still pretty ubiquitous. Personally, I've switched to Google Docs for most of my own documents, but I still receive a couple of Words docs from others via email every day. And it's common request from clients of our Services team to generate documents in the Word...

Read more »

Testing function agruments in GNU R

June 28, 2013
By

Recently I have read a nice post on ensuring that proper arguments are passed to a function using GNU R class system. However, I often need a more lightweight solution to repetitive function argument testing.The alternative idea is to test function arg...

Read more »

Revolution Newsletter: June 2013

June 27, 2013
By

The most recent edition of the Revolution Newsletter came out a couple of weeks ago. In case you missed it, the news section is below, and you can read the full June edition (with highlights from this blog and community events) online. You can subscribe to the Revolution Newsletter to get it monthly via email. R is for Analytics:...

Read more »

dimple d3 and rCharts

June 27, 2013
By
dimple d3 and rCharts

I put together a quick tutorial combining my two favorite things: finance and interactive visualizations.  I show how to use the new dimplejs d3 library with rCharts to create some nice interactive plots of US Treasury yield data.  ...

Read more »

Graphing with fPortfolio

June 27, 2013
By
Graphing with fPortfolio

Now to making pretty-looking graphs and charts for portfolio optimization! The first thing we will do is determine the frontier for our combination of securities. Remember, the variable returnsMatrix below is a matrix of returns for all the securities in … Continue reading →

Read more »

Portfolio Optimization with fPortfolio

June 27, 2013
By
Portfolio Optimization with fPortfolio

fPortfolio contains a number of function to make portfolio optimization easier. I can compare the results I get from the functions in fPortfolio to the results from my function from the previous post. I don’t expect them to be exactly … Continue reading →

Read more »

Learning Time Series with R

June 27, 2013
By

by Joseph Rickert Late last Saturday afternoon I was reading in my usual spot at the Dana Street Coffee House in Mt. View. A stranger walking by my table noticed my copy of Madsen’s Time Series Analysis (sitting there untouched again) said he needed to learn something about time series and asked if I could recommend a book. He...

Read more »

Portfolio Optimization

June 27, 2013
By
Portfolio Optimization

Changing tracks, I want to now look at portfolio optimization. Although this is very different from developing trading strategies, it is useful to know how to construct minimum-variance portfolios and the like, if only for curiosity’s sake. Also, just a … Continue reading →

Read more »

Parameter Optimization for Strategy 2

June 27, 2013
By
Parameter Optimization for Strategy 2

Now, let’s try some parameter optimisation for the SMA strategy! There probably are functions out there on R which I can use to do this, but I figured it would take me as long to actually code it as it … Continue reading →

Read more »

Fun with Fremont Bridge Bicyclists

June 27, 2013
By
Fun with Fremont Bridge Bicyclists

Given the title of this post and its proximity to the Solstice, you will be disappointed to know that I am not writing about naked bicyclists. I apologize for any false hope I may have instilled in you.On October 11th, 2012, the city of Seattle, WA beg...

Read more »

Sponsors

Mango solutions





RStudio homepage

Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training



http://www.eoda.de









ODSC

CRC R books series













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