## Draw nicer Classification and Regression Trees with the rpart.plot package

by Joseph Rickert The basic way to plot a classification or regression tree built with R’s rpart() function is just to call plot. However, in general, the results just aren’t pretty. As it turns out, for some time now there has been a better way to plot rpart() trees: the prp() function in Stephen Milborrow’s rpart.plot package. This function...

## Spatial Overlays with R – Retrieving Polygon Attributes for a Set of Points

A short tutorial for spatial overlays using R-GIS..library(sp)library(dismo)# spatial dataalt gadm # viewplot(alt)plot(gadm, add=T)# some addressespts # make it spatialcoords spdf_pts # assign CRS/projectionproj4string(spdf_pts) # check datastr(spdf_pts)# plot it on topplot(spdf_pts, cex = 2, col = 2, add = T)# do an intersection (points in polygon)# yielding the polygon's attribute dataover(spdf_pts, gadm)

## Compiling R 3.0.1 with MKL support

Before you begin, be aware that there is others excellent posts about the issue, as: 1. Compiling 64-bit R 2.10.1 with MKL in Linux 2. Speeding up R with Intel’s Math Kernel Library (MKL) 3. Performance benefits of linking R to multithreaded math libraries 4. Using MKL-Linked R in Eclipse But, as recently i faced some problems to The post Compiling...

## Visualizing transitions with the transitionPlot function

## An R package for Smith-Wilson yield curves

## R Plotting Financial Time Series

In my little world of finance, data almost always is a time series. Through both quiet iteration and significant revolutions, the volunteers of R have made analyzing and charting time series pleasant. As a mini-tribute to all those who have...

## Generating Tables Using Pander, knitr, and Rmarkdown

Generating Tables Using Pander, knitr, and Rmarkdown I use a pretty common workflow (I think) for producing reports on a day to day basis. I write them in rmarkdown using RStudio, knit them into .html and .md documents using knitr, then convert the resulting .md file to a .docx file using pander, which is really just a way of communicating with Pandoc via my R terminal. This workflow...

## highlight 0.4.2

highlight 0.4.2 is on CRAN. This fixes a few bugs reported by users. The main improvement is that we can now use highlight as a vignette engine, using the functionality introduced in R 3.0.0. In the Rcpp universe, we use … Continue reading →

## Dallas R Users: Creating R Packages this Saturday, 6/29

I’ll be presenting at the Dallas R Users Group next Saturday at 10:00AM at the University of Dallas on how to reproduce your R code. We’ll review how to use R scripts, how to embed R code in reproducible documents, and then introduce how to create your own R packages based on your R code.