# Digital Geography

## introduction to R: learning by doing (part 2: plots)

Lets go one with the second part of learning R by doing R (you will find the first part here. As we have used vectors, matrices and loops in the first part, we will concentrate on graphics in this one. but first we will need data to plot:

## introduction to R: learning by doing (part 1)

Geography is often about statistics as it is the basis for fast exchange of information: providing a mean and standard deviation to the audience is often much easier then showing raw data: Learning a script language for this purpose can be a hard-ass work. But I think it is more often a need of practice. And by practice I mean typing, reading and trying out.

## MatLab, SAS, STATA, SPSS, Excel users: Try R, damn it!

Due to my work with a multitude of statistical packages in my career I may be able to evaluate a lot of them. I’ve first used Excel for my calculations as most of the normal users do. I like the idea behind a spreadsheet and the combination of data and click-to-do functions. Nevertheless I’ve often managed to gain control again over my spreadsheets as they’ve evolved to some unintelligible things on my hard drive. The ruler of this evolution was spreadsheet “data_results_0.9.1a_final_b_ws.xls”…

## reproducible documents/analytics in R: the knitr package

When I am working in new institutions and I am asking: “Do you have a document management system?” I often get the answer:”Yap, we are using folders” … OKAY. Making analysis, developing applications and keeping an eye on code, data and applications make this even harder as it has to be. Of course not many institutions are using R and Latex but there is a nice little package called knitr which tries to make this a little bit easier. It combines your analysis and documentation in one single document aka PDF.

## reading shape files in R

If I would like to adjust a shape file I normally used the way over an excel file or a text file to get a table and to join this with an existing shape file. Due to the sp and rgdal packages in R you can manipulate shapefiles directly in R:

## setting your working directory permanently in R

Most of us R users are using a special working directory for the daily work in R. But I was bothered in typing everytime in my command line prior using R. Also using this line at the first position in scripts was not pleasent enough. So how to get around this? There is a special file in R for adjusting your startup-parameters. It is called “Rprofile.site”. In a linux environment you may type: In a Windows OS you just need to search for the file mentioned above and open it up in an editor of your choice. You will be…

## installing qgis on Ubuntu 12.04 LTS

Unfortunately the qgis package is not available through the Ubuntu Software Center. Yet it is of course possible to install it. Just open the terminal and add the repository of Ubuntugis to your sources for programs and install QGIS: This will install a “unstable” version of QGIS called Wroclaw: I think if this version gets the status “stable” it will be available again using the normal way of installation using the Ubuntu Software Center. Thanks for this goes to: Gis.stackexchange.com and Daniel Kerkow

## useR! 2012 Conference

“Spatial data is, quite literally, everwhere” (Barry Rowlingson) this is so true! And because of that you guys will have the chance to take part in a great tutroial on using R for managing geospatial data, transforming, making maps and working with OGC standards. So visit this years useR! conference at Vanderbilt University; Nashville, Tennessee, USA. This year the event will kick off with first tutorial on 12th of June! useR! conference auf einer größeren Karte anzeigen