Category Archives: r

ggplot2: How Geoms & Aesthetics ≈ Whipped Cream

In this post I have a few goals: 1. Become (re-)familiar with available geoms 2. Become (re-)familiar with aesthetic mappings in geoms (stroke who knew?) 3. Answer these questions: How often do various geoms appear and how often do they … Continue reading

Posted in analysis, data, ggplot2, r, tidyverse, trinker, tylerrinker, Uncategorized | Tagged , , , , , | 10 Comments

Math Notation for R Plot Titles: expression, bquote, & Greek Letters

In this post you will learn: How to create expressions that have mixed (1) strings, (2) expressions, (3) variables & (4) Greek letters How to pass in values as variables to an expression I wanted to name this post “Ahhhhhhhhhhh #$@%&!!!!” … Continue reading

Posted in ggplot2, plot, r, trinker, tylerrinker, visualization, work flow | Tagged , , , , , , , , , , | 4 Comments

Using R to Reason & Test Theory: A Case Study from the Field of Reading Education

Note: Word Press messes up the code. Find the code here: https://github.com/trinker/RandomCaseEffect This past week I was preparing slides for a reading assessment class with a lecture focus on the Visual Word Form Area [VWFA] (Cohen, et al., 2000). This … Continue reading

Posted in grapheme, letter, r, text, trinker, tylerrinker | Tagged , , , , , , , , , | 5 Comments

Minimal, Explicit, Python Style Package Loading for R

About a year and a half back I was working in Python a bit and became accustomed to the explicit importing of modules (akin to R packages) and functions. Python imports packages like this: import tidyr import dplyr as dp … Continue reading

Posted in r, Uncategorized | Tagged , , , , , | 6 Comments

Easily Make Multi-tabbed .xlsx Files with openxlsx

This is a quick script showing how to make multi-tabbed .xlsx files. I recently had the need to do this and used the flexible openxlsx package maintained by : Alexander Walker. The package is described by the author like this: … Continue reading

Posted in r, reports, work flow | Tagged , , , , , , , , | 5 Comments

Ordering Categories within ggplot2 Facets

I saw Simon Jackson’s recent blog post regarding ordering categories within facets. He proposed a way of dealing with the problem of ordering variables shared across facets within facets. This problem becomes apparent in text analysis where words are shared … Continue reading

Posted in ggplot2, r, text, tidytext, tidyverse, tylerrinker, visualization | Tagged , , , , , | 14 Comments

googleformr at Work: Pneumatic Road Tube Allegory

Steve Simpson (@data_steve) created the googleformr package to enable users to easily send information to a Google Form.  It’s a nice way to send and securely store data via R and the price is great…FREE! A Pneumatic Road Tube Allegory…Kinda … Continue reading

Posted in analysis, r, work flow | Tagged , , , , , , | 8 Comments

How do I re-arrange??: Ordering a plot re-revisited

Several years back I wrote a two part blog series in response to seeing questions about plotting and reordering on list serves, talkstats.com, and stackoverflow.  Part I discussed the basics of reordering plots by reordering factor levels.  The essential gist was: … Continue reading

Posted in factor, ggplot2, r, visualization | Tagged , , , , | 4 Comments

Cracking Safe Cracker with R

My wife got me a Safe Cracker 40 puzzle a while back. I believe I misplaced the solution some time back. The company, Creative Crafthouse, stands behind their products. They had amazing customer service and promptly supplied me with a … Continue reading

Posted in games, r | Tagged , , , , | 5 Comments

Wakefield: Random Data Set (Part II)

This post is part II of a series detailing the GitHub package, wakefield, for generating random data sets. The First Post (part I) was a test run to gauge user interest. I received positive feedback and some ideas for improvements, … Continue reading

Posted in data, data generation, r, random, trinker, tylerrinker, wakefield | Tagged , | 12 Comments