Another reminder of my classics. Sometimes, when you reduce data in a data frame some levels of categories are no longer contained in the observations after ﬁltering but the factors still contain them in their levels.
related to the R statistics language
This is a classic in R and I tend to forget it every once in a while. So I write it down as a note for my future me.
To create a stem plot, barplot (with ﬁlled bars), or a histogram, there is a simple method in R which provides a ﬂexible alternative to the full blown barplot and histogram plots. It’s even easier when it comes to composing multiple graphs in one plot.
This one is extremely useful if you want to create a quick histogram or stem plot in R.
Yesterday I had to remind myself on how to remove the row names in a
Row names are usually added by ﬁltering steps such as
Today I had to increase the main memory of my LaTeX installation yet another time and it required quite a while to collect the information again. Therefore, I am pasting my steps here as a future reference.
The last update of R’s tikzdevice (0.7.0) broke all my manually tuned graphs and now I have way too large margins, symbols and text sizes, etc. Even though this update was actually a ﬁx to the previously broken tikzdevice (it simply needed insane amount of margins compared to the other output devices due to ﬁshy metrics), I had workarounds in each graph which I had to ﬁx now - again - manually.
After some years as a MacPorts user I decided to give home brew a try, which are advertising their package manager with the sentence “Homebrew — MacPorts driving you to drink? Try Homebrew!”. The idea is not to build everything from scratch and create another software micro cosmos but to reuse existing Mac OS X abilities and save some space (as well as [cpu] time for updates). Sounds promising I thought and installed it according to the website’s description.
Some days ago I found a nice GUI for R: RStudio! It works as it should always have been: with a workspace/data browser, script editor (with source on save), documentation viewer, ﬁle browser, and a plot view. If you already feel familar with R, you should deﬁnately check it out, it will probably second your workﬂow as hell. At least it did for me…