Blog Archives

Network visualization of football transfers using the ‘visNetwork’ package

September 12, 2018
By
Network visualization of football transfers using the ‘visNetwork’ package

Click here for the interactive visualization If you're interested in the visualisation of networks or graphs, you might've heard of the great package "visNetwork". I think it's a really great package and I love playing around with it. The scenarios of graph-based analyses are many and diverse: whenever you can describe your data in terms of "outgoing" and "receiving" entities,...

Read more »

Send tweets from R: A very short walkthrough

May 6, 2018
By
Send tweets from R: A very short walkthrough

There are a few reasons why you might want to send tweets from R. You might want to write a Twitter bot or - as in my case - you want to send yourself a tweet when a very long computation finishes.So, here I will run you through all the steps you have ...

Read more »

Get your tracks from the Strava API and plot them on Leaflet maps

May 1, 2018
By
Get your tracks from the Strava API and plot them on Leaflet maps

Here is some updated R code from my previous post. It doesn't throw any warnings when importing tracks with and without heart rate information. Also, it is easier to distinguish types of tracks now (e.g., when you want to plot runs and rides separately...

Read more »

Where do you run to? Map your Strava activities on static and Leaflet maps.

January 31, 2018
By
Where do you run to? Map your Strava activities on static and Leaflet maps.

So, Strava's heatmap made quite a stir the last few weeks. I decided to give it a try myself. I wanted to create some kind of "personal heatmap" of my runs, using Strava's API. Also, combining the data with Leaflet maps allows us to make use of the beautiful map tiles supported by Leaflet and to zoom and move...

Read more »

Substitute levels in a factor or character vector

October 27, 2017
By

I've been using the ggplot2 package a lot recently. When creating a legend or tick marks on the axes, ggplot2 uses the levels of a character or factor vector. Most of the time, I am working with coded variables that use some abbreviation of the "true" meaning (e.g. "f" for female and "m" for male or single characters for...

Read more »

What’s in the words? Comparing artists and lyrics with R.

March 20, 2017
By
What’s in the words? Comparing artists and lyrics with R.

It's been a while since I had the opportunity to post something on music. Let's get back to that.I got my hands on some song lyrics by a range of artists. (I have an R script to download all lyrics for a given artist from a lyrics website. Since these lyrics are protected by copyright law, I cannot share...

Read more »

Plotting GPX tracks with Shiny and Leaflet

August 5, 2016
By
Plotting GPX tracks with Shiny and Leaflet

Lately, I got the chance to play around with Shiny and Leaflet a lot - and it is really fun! So I decided to catch up on an old post of mine and build a Shiny application where you can upload your own GPX files and plot them directly in the browser.Of course, you will need some GPX file...

Read more »

Visualisation of Likert scale results

July 31, 2016
By
Visualisation of Likert scale results

I wrote a function to visualise results of Likert scale items. Please find the function below the post. Here is an example plot:The function is called 'plot.likert' and takes the following arguments:- vec: The vector with the raw results- possible.values: A vector with all the possible values. This is sometimes important if not all possible responses were actually ticked...

Read more »

Visualisation of Likert scale results

July 31, 2016
By
Visualisation of Likert scale results

I wrote a function to visualise results of Likert scale items. Please find the function below the post. Here is an example plot: The function is called 'plot.likert' and takes the...

Read more »

Troubles with cell labels in mosaic plots… and how to solve them.

July 29, 2016
By
Troubles with cell labels in mosaic plots… and how to solve them.

Today I want to write about a solution to a quite specific problem. Suppose, you want to label cells in your 'vcd' package mosaic plots in a custom way. For example, we might want to use cell labels which indicate "too much" or "too few" cases (given your expected values). Such labels might be "+" and "-" (and maybe...

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)