Blog Archives

Conversion of Several Variables to Factors

December 15, 2011
By
Conversion of Several Variables to Factors

..often needed when preparing data for analysis (and usually forgotten until I need it for the next time).With the below code I convert a set of variables to factors - it could be that there are slicker ways to do it (if you know one let me know!) > da...

Read more »

Some Fun with googleVis – Mapping Blog Visits on Google Map

December 13, 2011
By
Some Fun with googleVis – Mapping Blog Visits on Google Map

See stand-alone code to produce this map below.Read more »

Read more »

Default Convenience Functions in R (Rprofile.site)

December 12, 2011
By
Default Convenience Functions in R (Rprofile.site)

I keep my blog-reference-functions, snippets, etc., at github and want to source them from there. This can be achieved by utilizing a function (source_https, customized for my purpose HERE). The original function was provided by the R-Blogger Tony Brey...

Read more »

Function for Adding Transparency to JPEG (Output = PNG)

December 12, 2011
By
Function for Adding Transparency to JPEG (Output = PNG)

..see the function-code HERE.

Read more »

Animation Newby Excercise with R-Package {animation}

December 12, 2011
By
Animation Newby Excercise with R-Package {animation}

Try this very simple & illustrative example for creating an animation with the animation package:myfun <- function ( ) { n = ani.options("nmax") x = sample(1:n) ...

Read more »

A Word Cloud with Spatial Meaning

December 7, 2011
By
A Word Cloud with Spatial Meaning

..Some time ago I did a word cloud for representing a Google Scholar search result. Tal Galili pointed me at a post by Drew Conway that expanded on the topic of word clouds lacking spatial meaning. In fact the spatial ordering of words in a word cloud ...

Read more »

Producing Google Map Embeds with R Package googleVis

December 1, 2011
By
Producing Google Map Embeds with R Package googleVis

(1) for producing html code for a Google Map with R-package googleVis do something like: library(googleVis)df <- data.frame(Address = c("Innsbruck", "Wattens"), Tip = c("My Location 1", "My Location 2"))mymap <- gvisMap(df, "Addre...

Read more »

Retrieve GBIF Species Occurrence Data with Function from dismo Package

November 28, 2011
By
Retrieve GBIF Species Occurrence Data with Function from dismo Package

..The dismo package is awesome: with some short lines of code you can read & map species distribution data from GBIF (the global biodiversity information facility) easily:Read more »

Read more »

..A Quick Geo-Trick for GoogleMaps in R (using dismo)

November 26, 2011
By
..A Quick Geo-Trick for GoogleMaps in R (using dismo)

... I thought this geocoding-bit might be worth to share (found HERE when searching the web for dismo-documentation).Read more »

Read more »

..Some More Regex Examples Added to Collection

November 25, 2011
By
..Some More Regex Examples Added to Collection

Find the below examples added to my list of regex-examples HERE. Read more »

Read more »