Publications by Sascha W.
Time series analysis with R: Testing stuff with NetAtmo data
I’ve got a NetAtmo weather station. One can download the measurements from its web interface as a CSV file. I wanted to give time series analysis with the extraction of seasonal components (‘decomposition’) a try, so I thought it would be a good opportunity to use the temperature measurements of my weather station. The data is available.To ...
2097 sym 4 img
Stop fiddling around with copied paths in Windows R
I work with R on both Mac OS and Windows. On Windows, you get the option to copy the path of a file or folder by holding Shift while right-clicking on the file or folder. As useful as this feature is, it copies paths to your clipboard in Windows format, e.g. “C:\Users\someone\Documents\R\scripts\someproject\preparations.R”That is ...
1617 sym
Stop fiddling around with copied paths in Windows R
I work with R on both Mac OS and Windows. On Windows, you get the option to copy the path of a file or folder by holding Shift while right-clicking on the file or folder. As useful as this feature is, it copies paths to your clipboard in Windows format, e.g. “C:UserssomeoneDocumentsRscriptssomeprojectpreparations.R”That is not ver...
1606 sym
Do basic R operations much faster in bash [Slightly off-topic]
R is great, and you can do a LOT OF stuff with it.However, sometimes you want to do really basic stuff with huge or a lot of files. At work, I have to do that a lot because I am mostly dealing with language data that often needs some pre-processing.Most of these operations are done much, much faster on the level of the operating syste...
2070 sym
Do basic R operations much faster in bash [Slightly off-topic]
R is great, and you can do a LOT OF stuff with it.However, sometimes you want to do really basic stuff with huge or a lot of files. At work, I have to do that a lot because I am mostly dealing with language data that often needs some pre-processing.Most of these operations are done much, much faster on the level of the operating syste...
2070 sym
Just plot this…
png(“goodbye.png”, height = 625, width = 500)par(col = “purple”)plot(1, 1, xlim = c(0,800), ylim = c(0,1600), type = “n”, bty = “n”, xaxt = “n”, yaxt = “n”, xlab = “”, ylab = “”)symbols(x = 400, y = 1200, circles = 400, add = T, lwd = 40)lines(x = c(400, 400), y = c(900, 100), lwd = 40, lend = 1)lines(x = c(480, 32...
1328 sym
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 mayb...
2204 sym 6 img
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 mayb...
2186 sym 6 img
Visualisation of Likert scale results
[EDIT: The function now also inludes the possibility to plot the IQR around the median. I shifted the median slightly downwards to prevent the SD and the IQR from overlapping.]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.l...
5349 sym 2 img
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 no...
4870 sym 2 img