Meetings, meetings, meetings (finally) and R/Finance

Oh, Hello June!

I’m super pleased to announce that there is a growing R/Finance user group in Cape Town and they are joining us to co-host some user group meetings. Specifically, the next two.

Save these dates:

Update June 9 seminar location: Seminar Room 2, Falmouth Building, Health Sciences Campus, UCT
Entrance 4 or 5, I will be close by from 5 – and will put a sign on the door. Sorry, beer place was booked. We can go after. Email if you want detailed directions..

Next week! On June 9 (17h30) on UCT campus somewhere, Dirk Eddelbuettel, who is the primary developer of the Rcpp package will speak to us about Rcpp. Rcpp is the engine that lets you integrate C/C++ with R, and anyone developing or interested in developing packages for R shouldn’t miss this opportunity.

On 13 July (17h30 SAST),  please join us for a talk by Brian Peterson on “Trading Strategy Development in R using Quantstrat”.

Brian Peterson, currently Partner and Director of Quantitative Trading at leading market making firm DV Trading is also the maintainer, author and co-author of multiple R/Finance packages and functions including Performance Analytics and Quantstrat. He is a member of the program committee for the global R/Finance and UseR! Conferences and has publications in multiple journals including the Journal of Risk and the Journal of Statistical Software.”

This will be via some technology, but special thanks to Jasen Mackie (aka R/Finance) who set this up.


In August, we have Glenn Moncrieff and “Creating interactive reports with Shiny”

Abstract: Shiny is a package from Rstudio ( for building interactive web applications with R, allowing users to interact with graphs and data. We will look at the basics of building and deploying a Shiny app, and go on to look at a more advanced example where I will demo an app I am working on.  Using the leaflet package together with Shiny (, my app allows users to view and interact with maps and perform simple geographic analyses.

Please please RSVP just so I get a sense of numbers and can book appropriate venues. Look forward to getting together again.

ps. the satRdays (which is funded by R Consortium) is coming to Cape Town in 2017 (I think). I’m not involved in organisation, but will try to keep you informed – it should be a great event and opportunity.

pps: If you are interested in statistics, the Div. of Epi & Biostats at UCT has a talk on June 14 at 12:30, by Justine Nasejje on “Random survival forests as alternative methods to Cox proportional hazards in analysing survival data”


Holidays & next year

It’s been a bit busy – sorry for the few months of silence. We’ll be taking a break until mid-January, then we’ve got a great line up of people to talk to us about R in 2016. Yay! R!

Last year was great, if you have visitors or anyone else that would like to give a talk next year please just drop me an email.

Also, I still tweet useful things on the twitter account. Follow @CapeRUser

Summary Cape R User Group meeting v 0.4

Jasper gave a great session outlining some of the tools that can be used to deal with spatial data in R – I learned a lot – like R can pretty much do everything and it’s very straight forward. Plus nice pictures + learn to parallelise your code if you are working with big/high resolution data.

The very last @RevolutionR t-shirts were given away (hint hint: we need more!) and for the first time we did a dual live broadcast (to the UK somewhere and via Google on Air) which means you can watch the entire thing here and you can access the talk materials on Rpubs here.   Jasper also got some great feedback on twitter, 

Stay tuned for next talk, I’m hoping to get one more meeting in before the end of the year, probably Stellenbosch side.

Cape R User Group Meeting v 0.4 

Title: A Primer for Spatial Data Analysis in R
Date: September 10, 2015
Time: 17:00 for 17:15
Location: UCT Club, Upper Campus
RSVP: here (last t-shirts from Revolution up for grabs)

Presenter: Jasper Slingsby

Fynbos Node, South African Environmental Observation Network
South Africa, Centre for Statistics in Ecology, Environment and Conservation;

Abstract: Points, lines, polygons and rasters – R can handle them all. My aim for this session is to give you the basics required to teach yourself spatial data analysis in R. I’ll start by briefly covering CRAN Task Views and how to install them (using the ’Spatial’ task view as an example), followed by some pointers for useful DIY resources, and then work through a practical example exploring fire history layers (polygon), topographic (raster) and locality (point) data using the libraries ’rgdal’, ’raster’ and ’sp’. The example will cover setting and changing projections and extents, raster calculations, rasterizing polygons and extracting data with a few neat tricks along the way. Depending on how much time that takes (and how my week pans out) I may touch on spatial interpolation, parallelising your code, and creating cool animations :) If there’s anything you’d like to see covered, email me (jasper at saeon dot ac dot za) and I’ll see if I can include it (but note that I am not a helpdesk…).

Summary CapeRUG v 0.3

Great talk by Robert on building flexible, pretty, graphics in R using the ggplot2 package. We had a nice turnout (I forgot to count…) and the slides are available now in the Cape R repo – join the mailing list if you want access to this.

[I also forgot to take pictures…]

Our next speaker will be Jasper Slingsby from SANBI who is going to talk about “something spatial” but I know he’s been working with lots of geographic & environmental data and complicated Bayesian models so we can ask him hard questions. This talk will take place in September at UCT.

Thanks for coming out, see you next time!

CapeR User Group meeting v 0.3

This will be a great talk, come support the CapeR group, drink a beer (or soda), and enter the draw for prizes from our sponsor RevolutionAnalytics. RSVP here.

Date/Time: July 30, 2015  17:00 for 17:15

Location: Most likely at the UCT Club, Upper Campus, UCT

Speaker: Robert Schlegel, UWC

Beautiful R: Creating the next generation of figures with ggplot2

Are you tired of using excel to create the figures for your publications/ thesis? No longer satisfied with that old map of SA you’ve been using for the last two years? Does your workflow involve more than one program? This evening we will see how to very easily remedy all three of these problems using “R” and the package “ggplot2”. With the use of this one central package, and a few others to manipulate our data for plotting, it is possible to remove all other graphical and statistical programs from your scientific workflow. Besides saving one’s time, the code used to produce the figures in this manner is easy to read and manipulate, allowing one to have an amazing combination of both reproducibility in research and control in the graphical output. By the end of this talk an “R” user will have a clear understanding of how one goes about using “ggplot2” to create anything from boxplots to maps of South Africa or the world.

ps. if we can consistently get 30+ attendees, Revolution will give us better prizes and more money…bring your friends.