Publications by Roman Luštrik

Point arrows to specific parts of the data

13.04.2018

tl;dr: Point arrows at your line at defined datum points. Sometimes to really enhance your picture you need to point at some stuff. Here is a script which will plot vertical lines to show events in your datum plot. library(ggplot2) # This script will draw points to parts of (interpolated) lines. arrow.length <- 10 touchoff.distance <- 4 # dista...

625 sym R (1637 sym/1 pcs) 2 img

Point arrows to specific parts of the data

13.04.2018

tl;dr: Point arrows at your line at defined datum points. Sometimes to really enhance your picture you need to point at some stuff. Here is a script which will plot vertical lines to show events in your datum plot. library(ggplot2) # This script will draw points to parts of (interpolated) lines. arrow.length <- 10 touchoff.distance <- 4 # dista...

625 sym R (1637 sym/1 pcs) 2 img

How to combine plots and table made with ggplot (or grid graphics) in R

01.10.2018

In the last few years, a number of options of how to combine grid graphics (incl. ggplot2) have emerged. If you can’t remember all functions to do this, this post may serve as a reference guide, but it’s mostly for me because I keep forgetting the functionalities provided by cowplot and patchwork packages (thank you Jaap). Here appearing in o...

1744 sym R (789 sym/4 pcs) 6 img

How to combine plots and table made with ggplot (or grid graphics) in R

01.10.2018

In the last few years, a number of options of how to combine grid graphics (incl. ggplot2) have emerged. If you can’t remember all functions to do this, this post may serve as a reference guide, but it’s mostly for me because I keep forgetting the functionalities provided by cowplot and patchwork packages (thank you Jaap). Here appearing in o...

1744 sym R (789 sym/4 pcs) 6 img

How to authenticate using OAuth2 through R

19.01.2019

If you need to have authentication of users in your application, you could invent the proverbial warm water by implementing register, login, logout and other features. Or, you could outsource part of that functionality to well established establishments such as Google, Facebook, Github and other. In addition to knowing the identity of your user, ...

3499 sym R (2766 sym/6 pcs) 6 img

How to authenticate using OAuth2 through R

19.01.2019

If you need to have authentication of users in your application, you could invent the proverbial warm water by implementing register, login, logout and other features. Or, you could outsource part of that functionality to well established establishments such as Google, Facebook, Github and other. In addition to knowing the identity of your user, ...

3499 sym R (2766 sym/6 pcs) 6 img

How I implemented googleSignIn in R (shiny) and lived

15.03.2019

Known user identity when building shiny apps can sometimes come really handy. While you can implement your own user login, for instance using cookies, you can also use some of the services which authenticate a user for you, such as Google. This way, you don’t have to handle cookies or passwords, just a small part of bureaucracy in your database...

2232 sym 8 img

How I implemented googleSignIn in R (shiny) and lived

15.03.2019

Known user identity when building shiny apps can sometimes come really handy. While you can implement your own user login, for instance using cookies, you can also use some of the services which authenticate a user for you, such as Google. This way, you don’t have to handle cookies or passwords, just a small part of bureaucracy in your database...

2232 sym 8 img

Vectorizing functions in R is easy

16.04.2019

Imagine you have a function that only takes one argument, but you would really like to work on a vector of values. A short example on how function Vectorize() can accomplish this. Let’s say we have a data.frame xy <- data.frame(sample = c("C_pre_sample1", "C_post_sample1", "T_pre_sample2", "T_post_sample2", "NA_pre_s...

1680 sym R (1399 sym/5 pcs)

Vectorizing functions in R is easy

16.04.2019

Imagine you have a function that only takes one argument, but you would really like to work on a vector of values. A short example on how function Vectorize() can accomplish this. Let’s say we have a data.frame xy <- data.frame(sample = c("C_pre_sample1", "C_post_sample1", "T_pre_sample2", "T_post_sample2", "NA_pre_s...

1680 sym R (1399 sym/5 pcs)