Finally, an easy way to fix the horizontal lines in ggplot2 maps

April 13, 2014
By

ggplot2 tries to make it super easy to add country or state borders to your map, and for the most part it works great as long as you include the entire map region in your plot (all the states or the entire world map for example). A long standing issue with the ggplot2 borders() function

Read more »

Open Science Through R

April 13, 2014
By

There's so much being written about R these days, and justifiably so. If you use R for your econometrics, you should also keep in mind that its applicability is far wider than statistical analysis. A big HT to the folks at Quandl for leading me to a nice overview of the way in which R is enabling some big...

Read more »

ChIPseeker for ChIP peak annotation

April 13, 2014
By

ChIPpeakAnno WAS the only one R package for ChIP peak annotation. I used it for annotating peak in my recent study.I found it does not consider the strand information of genes. I reported the bug to the authors, but they are reluctant to change.Read More: 2903 Words Totally

Read more »

Earthquakes: Land / Ocean Distribution

April 13, 2014
By
Earthquakes: Land / Ocean Distribution

The next stage in my earthquake analysis project is to partition the events into groups with epicentre over land or water. Since our existing catalog contains the latitude and longitude for the epicentres, it was a relatively simple matter to pipe these into gmtselect and label the events accordingly. The resulting data when sucked into

Read more »

Following open courseware

April 13, 2014
By

I love massive open online courses such as provided on Coursera and edX. So I enrolled in the Data Analysis for Genomics course on edX. I am not alone there as seen from this posting on FreshBiostats.I was shocked when I took the Pre-Course R self-asse...

Read more »

GeoCoding, R, and The Rolling Stones – Part 1

April 12, 2014
By
GeoCoding, R, and The Rolling Stones – Part 1

Originally posted on Rolling Your Rs:In this article I discuss a general approach for Geocoding a location from within R, processing XML reports, and using R packages to create interactive maps. There are various ways to accomplish this, though using Google’s GeoCoding service is a good place to start. We’ll also talk a bit…

Read more »

WrightMap 1.1 Ancillary Antelope Released

April 12, 2014
By
WrightMap 1.1 Ancillary Antelope Released

The new version of WrightMap (Ancillary Antelope) is now available on CRAN.Remember that you can visit the package tutorials on our website.This new version includes:- New function to create fit graphs like the example below.- Parameter conversion: Function for calculating Thurstonian thresholds from Master’s deltas. - New examples. - Added axis range controls. - Made histogram...

Read more »

Visualizing Age-Length Keys

April 12, 2014
By
Visualizing Age-Length Keys

Lately, I have been interested in methods related to age-length keys. One aspect of this interest has been in visualizing age-length keys. I had seen various visualizations in publications and wanted to be able to reproduce those relatively efficiently. To … Continue reading →

Read more »

Heatmap of Toronto Traffic Signals using RGoogleMaps

April 12, 2014
By
Heatmap of Toronto Traffic Signals using RGoogleMaps

A little while back there was an article in blogTO about how a reddit user had used data from Toronto's Open Data initiative to produce a rather cool-looking map of all the locations of all the traffic signals here in the city.It's neat because as the author on blogTO notes, it is recognizable as Toronto...

Read more »

chart with individual signals

April 12, 2014
By
chart with individual signals

Also I'm not to much into Technical Indicators and Chart-Analysis during system development it is sometimes handy to visualize your buy and selllimits in a chart.The quantmod package provides a nice charting environment and you can select from a bunch ...

Read more »

Using memoise to cache R values

April 12, 2014
By

IntroductionThe memoise package can be very handy for caching the results of slow calculations. In interactive work, the slowest calculations can be reading data, so that is demonstrated here. The microbenchmark package shows timing results.Methods and resultsSetupFirst, load the package being tested, and also a benchmarking package.1 2library(memoise) library(microbenchmark)Test conventional functionThe demonstration will be for reading a CTD file.1library(oce)##...

Read more »

Shape File Selfies in ggplot2

April 11, 2014
By
Shape File Selfies in ggplot2

In this post you will learn how to: Create your own quasi-shape file Plot your homemade quasi-shape file in ggplot2 Add an external svg/ps graphic to a plot Change a grid grob's color and alpha *Note get simple .md version … Continue reading →

Read more »

Le Monde sans puzzle [& sans penguins]

April 11, 2014
By
Le Monde sans puzzle [& sans penguins]

As the Le Monde mathematical puzzle of this week was a geometric one (the quadrangle ABCD is divided into two parts with the same area, &tc…) , with no clear R resolution, I chose to bypass it. In this April 3 issue, several items of interest: first, a report by Etienne Ghys on Yakov Sinaï’s

Read more »

Visualize violent crime rates in US with choroplethr package

April 11, 2014
By
Visualize violent crime rates in US with choroplethr package

Visualize violent crime rates in different US States with choroplethr package Visualize violent crime rates in different US States with choroplethr package I knew choroplethr package by the blog post Animated Choropleths in R a few days ago. As a another visualization tool in R language, I wana try this one. To install the...

Read more »

Fortran and R – Speed Things Up

April 11, 2014
By
Fortran and R – Speed Things Up

If you are a newcomer to R then you are probably quite busy learning the semantics of the language as you experiment with the apply family of commands or come up to speed on the grouping and conditioning capabilities offered by lattice graphics. And, along the way, you might have heard that R has the

Read more »

Find it Humorous … “Not So Bad” in the “long-term”

April 11, 2014
By

I agree the market selloff has been weak thus far (especially as a frustrated bear).  However, I find it humorous as some widely followed commentators say things like “You’re only down x% ytd.  It’s not that bad”.  I wonder if this selloff g...

Read more »

Create an impressionist self-portrait from your Twitter followers

April 11, 2014
By
Create an impressionist self-portrait from your Twitter followers

Here's something fun you can do with R and its interface to Twitter, the TwitteR package. An R script by CMU student Mark Patterson downloads your Twitter profile picture, counts the number of Twitter followers you have, and then creates a pointillist version of your profile picture with as many dots as you have followers. Here's mine: Note that...

Read more »

Analysing squash performance using fitbit data

April 11, 2014
By
Analysing squash performance using fitbit data

I previously wrote about accessing step data in R using the fitbit API and at the time said I could think of little to do with the data that was not available via the fitbit website. Since then I’ve rejoined … Continue reading →

Read more »

Rblogger Posting Patterns Analyzed with R

April 11, 2014
By
Rblogger Posting Patterns Analyzed with R

I've been a big fan of rbloggers for quite some time, but have only recently started contributing myself. After my first post yesterday, I immidiately started wondering how long most other bloggers go between posts. I decided to gather the list of past posts to rbloggers to investigate...

Read more »

And the most loyal fans in the NBA are…

April 11, 2014
By
And the most loyal fans in the NBA are…

NBA basketball is the one the sports I enjoy watching the most. As I was ordering my (undisclosed amount)th beer while watching a game during after-work hours, it occurred to me how often I had seen sparsely populated arenas during games, with large areas of seats going unoccupied. This got me to thinking about the

Read more »

Potential and Possibilities of the Programming Language R for Predictive Maintenance

April 11, 2014
By
Potential and Possibilities of the Programming Language R for Predictive Maintenance

Have you ever been asked a question starting with: “Can you use R to…“, only to politely interrupt the inquisitor at this point to reply with something similar to “Yes, you can! R probably already has a package for this”. If this sounds familiar to you, you won’t be overly surprised to hear that R

Read more »

Largest Volcanoes in Recorded History (and other statistics)

April 11, 2014
By
Largest Volcanoes in Recorded History (and other statistics)

Around 199 years ago the largest volcano in recorded history, Mount Tambora, erupted, spewing an enormous volume of molten rock and ash into the atmosphere and onto the surrounding land. How is the intensity of a volcanic eruption quantified? Most people know about the Richter Scale which quantifies the energy released in an earthquake. The

Read more »

About Data

April 11, 2014
By
About Data

I recently did a workshop about data with PhD students. That was great to order my thoughts and put together a lot of good resources. All material used (with lots of links) is available in GitHub: https://github.com/ibartomeus/Data. Topics range from hardcore … Continue reading →

Read more »

Side-by-Side Box Plots with Patterns From Data Sets Stacked by reshape2 and melt() in R

Side-by-Side Box Plots with Patterns From Data Sets Stacked by reshape2 and melt() in R

Introduction A while ago, one of my co-workers asked me to group box plots by plotting them side-by-side within each group, and he wanted to use patterns rather than colours to distinguish between the box plots within a group; the publication that will display his plots prints in black-and-white only.  I gladly investigated how to

Read more »

RcppCNPy 0.2.3

April 10, 2014
By

R 3.1.0 came out today. Among the (impressive and long as usual) list of changes is the added ability to specify CXX_STD = CXX11 in order to get C++11 (or the best available subset on older compilers). This brings a number of changes and opportunitie...

Read more »

R 3.1.0 "Spring Dance" is released

April 10, 2014
By

As announced this morning on mailing list, R 3.1.0 (codenamed "Spring Dance") has been released. The source code is available now; as of this writing binary versions haven't yet appeared on CRAN or propagated to the mirrors, but I expect they'll be available in a day or two. You can check out the full list of changes in the...

Read more »

R 3.1.0 is released!

April 10, 2014
By
R 3.1.0 is released!

R 3.1.0 (codename “Spring Dance“) was released today! You can get the source code from http://cran.r-project.org/src/base/R-3/R-3.1.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. The full list of new features and bug fixes is provided below. Upgrading to R 3.1.0 You can

Read more »

Take a look, it’s in a book: distribution of kindle e-book highlights

Take a look, it’s in a book: distribution of kindle e-book highlights

If you've ever started a book and not finished it, it may comfort you to know that you are not alone. It's hard to get accurate estimates of the percentage books that are discontinued, but the rise of e-reading (and resulting circumvention of privacy) affords us the opportunity to answer related questions. The kindle e-reading »more

Read more »

BARUG talks highlight R’s diverse applications

April 10, 2014
By
BARUG talks highlight R’s diverse applications

by Joseph Rickert The seven lightning talks presented to the Bay Area useR Group on Tuesday night were not only really interesting (in some cases downright entertaining) in their own right, but they also illustrated the diversity of R applications, and the extent to which R has become embedded in the corporate world. Two presentations with a whimsical touch...

Read more »