Monthly Archives: November 2010

How to simulate wind speed time series with R

November 2, 2010
By
How to simulate wind speed time series with R

If you need to generate synthetic wind speed time series, you may find useful the procedure described in  “A Markov method for simulating non-gaussian wind speed time series” by G.M. McNerney and P.S. Veers (Sandia Laboratories, 1985), and “Estimation of extreme wind speeds with very long return periods” by M.D.G Dukes and J.P. Palutikof (Journal

Read more »

ROC – plot

November 1, 2010
By
ROC – plot

There are many implantation in R already of ROC plots (e.g. in the packages PresenceAbsence, ROCR). I just wrote my own very simple script just to get a better understanding of it.

Read more »

Programming with R – Returning Information as a List

November 1, 2010
By

In previous posts (here and here) we created a simple function that returns a single numeric value. In some situations it may be more useful to return a more flexible data type, such as a list object, to provide more information about the calculations that have been performed. We can extend our previous function by changing

Read more »

Google TechTalk on integrating R

November 1, 2010
By

As noted on the Google Open Source Blog last week, R package authors Dirk Eddelbuettel and Romain Francois recently gave a presentation on R at the Googleplex, on various topic related to "bridging" R into other systems. Their 90-minute talk is available for replay on YouTube (as part of the Google TechTalks series), and you can download the slides...

Read more »

An analysis of the Stackoverflow Beta sites

November 1, 2010
By
An analysis of the Stackoverflow Beta sites

In the last six months or so, the behemoth of Q & A sites stackoverflow, decided to change tack and launch a number of other non-computing-language sites. To launch a site in the stackoverflow family, sites have to spend time gathering followers in Area51. Once a site has gained a critical mass, a new StackExchange

Read more »

Interesting packages of new BioC2.7

November 1, 2010
By

NuPoP Nucleosome positioning predictionMulcom Differential expression and false discovery rate calculation through multiple comparisonontoCAT Ontology parsingBHC Bayesian Hierarchical ClusteringiSeq Bayesian Hierarchical Modeling of ChIP-seq...

Read more »

Example 8.12: Bike ride plot, part 1

November 1, 2010
By
Example 8.12: Bike ride plot, part 1

The iPhone app Cyclemeter uses the phone's GPS capability to record location and other data, and infer speed, while you ride. I took a ride near my house recently, and downloaded the data. I'd like to examine my route and my speed. A simple plot of ...

Read more »

ggplot2 change axis labels

November 1, 2010
By
ggplot2 change axis labels

Today, I will try to change the labels of the x and y axis.

Read more »

Modeling sound pressure level of a rifle shot

November 1, 2010
By
Modeling sound pressure level of a rifle shot

Noise can be classified as pollution and lawmakers often (always?) treat it as such. Noise can have different origin points, point source being among the simplest to model. Because noise has broader health implications, being able to understand its propagation, a simple model can further our understanding in toning down or preventing excessive noise burden

Read more »

Choropleth Maps of Presidential Voting

November 1, 2010
By
Choropleth Maps of Presidential Voting

Having always appreciated the red and blue cartograms and cartographs of geographic electoral preferences, such as those made available by Mark Newman, I sought to produce similar maps, but include information about support for non-“state-sponsored” parties, and to extend the coverage back in time. I was able to find county-level presidential election returns going as … Continue reading →

Read more »