Blog Archives

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 »

A Function for Adding up Matrices with Different Dimensions

November 24, 2011
By
A Function for Adding up Matrices with Different Dimensions

I was unlucky finding a function that can handle matrices with different dimensions. Thus, I coded a little function that sums up matrices, also coping with matrices with different dimensions.Read more »

Read more »

Using SyntaxHighlighter and R Brush in Blogger

November 16, 2011
By
Using SyntaxHighlighter and R Brush in Blogger

If you're thinking it is time to give the code examples in your blog a more readable look, you may follow this path and use the SyntaxHighlighterFirst thing: check the SyntaxHighlighter Website for the basics.Read more »

Read more »

How to Download and Run Google Docs Script from within the R-Console

November 14, 2011
By
How to Download and Run Google Docs Script from within the R-Console

...There is not much to it:upload a txt file with your script, share it for anyone with the link, then simply run something like the below code. ps: When using the code for your own purpose mind to change "https" to "http" and to i...

Read more »