R and Java


In this section we'll point you at an R tutorial for drawing some nice network maps, and look at some futher resources.


The best, simplest, tutorial for this is Nathan Yau's great How to map connections with great circles. It takes minutes to work through and ends up generating some very nice PDFs. It is also worth reading the comments below it. If you want more control on the arcs, then one comment links to a tutorial by Oscar Perpinan Lamigueiro: Great circles, raster, sp and lattice.

If you run Nathan's code, you'll need to install the maps and geosphere packages and make sure you load them first.


Further resources

rJava

There are no resources for using the JNI bits of rJava, other than the rJava API docs and the test files (which aren't especially designed for learning from). The Rengine class is your best starting point. The R-to-Java components have a short "Hello World" tutorial on the package Homepage - scroll down.

R

On the other hand, for R there are almost too many resources. It is a language in its own right, and there are a vast number of packages. The best place to start in understanding R is to read through An Introduction to R. This gives an excellent start, and should be enough to understand the code in today's practical. You are strongly advised to read this - R is an extremely popular and rising package; knowledge of it will be very useful. Other manuals can be found on the same page, which can also be found by going to the R homepage and following the link to the manuals on the left.