Blog Archives

Creating Slopegraphs with R

June 22, 2018
By
Creating Slopegraphs with R

Presenting data results in the most informative and compelling manner is part of the role of the data scientist. It's all well and good to master the arcana of some algorithm, to manipulate and master the numbers and bend them to your will to produce a “solution” that is both accurate and useful. But, those Related PostHow to use...

Read more »

Announcing another slopegraph plotting function – June 14, 2018

June 13, 2018
By
Announcing another slopegraph plotting function – June 14, 2018

A couple of weeks ago I wrote a blog post about slopegraphs. There was some polite interest and it was a good chance to practice my functional programming skills so I decided to see if I could make a decent R function from what I had learned. It’s in pretty good shape so I just pushed an update to...

Read more »

CHAID and caret – a good combo – June 6, 2018

June 5, 2018
By
CHAID and caret – a good combo – June 6, 2018

In an earlier post I focused on an in depth visit with CHAID (Chi-square automatic interaction detection). There are lots of tools that can help you predict an outcome, or classify, but CHAID is especially good at helping you explain to any audience how the model arrives at it’s prediction or classification. It’s also incredibly robust from a statistical...

Read more »

Slopegraphs and R – A pleasant diversion – May 26, 2018

May 24, 2018
By
Slopegraphs and R – A pleasant diversion – May 26, 2018

I try to at least scan the R-bloggers feed everyday. Not every article is of interest to me, but I often have one of two different reactions to at least one article. Sometimes it is an “ah ha” moment because the article is right on point for a problem I have now or have had in the past and...

Read more »

CHAID and R – When you need explanation – May 15, 2018

May 14, 2018
By
CHAID and R – When you need explanation – May 15, 2018

A modern data scientist using R has access to an almost bewildering number of tools, libraries and algorithms to analyze the data. In my next two posts I’m going to focus on an in depth visit with CHAID (Chi-square automatic interaction detection). The title should give you a hint for why I think CHAID is a good “tool” for...

Read more »

Announcing CGPfunctions 0.3 – April 20, 2018

April 19, 2018
By
Announcing CGPfunctions 0.3 – April 20, 2018

As I continue to learn and grow in using R I have been trying to develop the habit of being more formal in documenting and maintaining the various functions and pieces of code I write. It’s not that I think they are major inventions but they are useful and I like having them stored in one place that I...

Read more »

Writing better R functions part four – April 17, 2018

April 16, 2018
By
Writing better R functions part four – April 17, 2018

In my last four posts I have been working at automating a process, that I am likely to repeat many times, by turning it into a proper R function. In my last post I overcame some real performance problems, combined two sub-functions into one and generally had a workable piece of code. In the final post in this series...

Read more »

Writing better R functions part three – April 13, 2018

April 12, 2018
By
Writing better R functions part three – April 13, 2018

In my last post I worked on two functions that took pairs of variables from a dataset and produced some nice useful ggplot plots from them. We started with the simplest case, plotting counts of how two variables cross-tabulate. Then we worked our way up to being able to automate the process of plotting lots of pairings of variables...

Read more »

Writing better R functions part two – April 10, 2018

April 9, 2018
By
Writing better R functions part two – April 10, 2018

In my last post I started to build two functions that took pairs of variables from a dataset and produced some nice useful ggplot plots from them. We started with the simplest case, plotting counts of how two variables cross-tabulate. Then we worked our way up to being able to automate the process of plotting lots of pairings of...

Read more »

Writing better R functions part one – April 6, 2018

April 5, 2018
By
Writing better R functions part one – April 6, 2018

One of the nicest things about working with R is that with very little effort you can customize and automate activities to produce the output you want – just the way you want it. You can contrast that with more monolithic packages that may allow you to do a bit of scripting, but for the most part, the price...

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)