<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/announcing-another-slopegraph-plotting-function-june-14-2018/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://ibecav.github.io/announce04/"> Chuck Powell</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>A couple of weeks ago <a rel="nofollow" href="https://ibecav.github.io/slopegraph/" target="_blank">I wrote a blog post about<br>
slopegraphs</a>. There was some<br>
polite interest and it was a good chance to practice my <a rel="nofollow" href="https://ibecav.github.io/betterfunctions/" target="_blank">functional<br>
programming skills</a> so<br>
I decided to see if I could make a decent R function from what I had<br>
learned. It’s in pretty good shape so I just pushed an update to<br>
CRAN (it will take awhile to process). You can also get the latest version from GitHub.</p>
<p><a rel="nofollow" href="https://ibecav.github.io/CGPfunctions/reference/newggslopegraph.html" target="_blank">The documentation for it is here</a>. Longer<br>
term I hope <a rel="nofollow" href="https://github.com/leeper/slopegraph" target="_blank">to move it here</a>.</p>
<p><a rel="nofollow" href="https://cran.r-project.org/package=CGPfunctions" target="_blank"><img alt="CRAN
Version" src="https://www.r-pkg.org/badges/version/CGPfunctions"></a></p>
<h2>Overview</h2>
<p>The package also includes other functions that I find useful for teaching<br>
statistics as well as actually practicing the art. They typically are<br>
not “new” methods but rather wrappers around either base R or other<br>
packages and concepts I’m trying to master.</p>
<ul>
<li><code>Plot2WayANOVA</code> which as the name implies conducts a 2 way ANOVA and<br>
plots the results using <code>ggplot2</code></li>
<li><code>PlotXTabs</code> which as the name implies plots cross tabulated<br>
variables using <code>ggplot2</code></li>
<li><code>neweta</code> which is a helper function that appends the results of a<br>
Type II eta squared calculation onto a classic ANOVA table</li>
<li><code>Mode</code> which finds the modal value in a vector of data</li>
<li><code>SeeDist</code> which wraps around ggplot2 to provide visualizations of<br>
univariate data.</li>
<li><code>OurConf</code> is a simulation function that helps you learn about<br>
confidence intervals</li>
</ul>
<h2>Installation</h2>
<div>
<div>
<pre><code><span># Install from CRAN</span><span>
</span><span>install.packages</span><span>(</span><span>&quot;CGPfunctions&quot;</span><span>)</span><span>
</span><span># Or the development version from GitHub</span><span>
</span><span># install.packages(&quot;devtools&quot;)</span><span>
</span><span>devtools</span><span>::</span><span>install_github</span><span>(</span><span>&quot;ibecav/CGPfunctions&quot;</span><span>)</span><span>
</span></code></pre>
</div>
</div>
<h2>Credits</h2>
<p>Many thanks to Dani Navarro and the book > (<a rel="nofollow" href="http://www.compcogscisydney.com/learning-statistics-with-r.html" target="_blank">Learning Statistics with<br>
R</a>)<br>
whose etaSquared function was the genesis of <code>neweta</code>.</p>
<p>“He who gives up safety for speed deserves neither.”<br>
(<a rel="nofollow" href="https://twitter.com/hadleywickham/status/504368538874703872" target="_blank">via</a>)</p>
<h4>A shoutout to some other packages I find essential.</h4>
<ul>
<li><a rel="nofollow" href="https://github.com/tidyverse/stringr" target="_blank">stringr</a>, for strings.</li>
<li><a rel="nofollow" href="https://github.com/hadley/lubridate" target="_blank">lubridate</a>, for date/times.</li>
<li><a rel="nofollow" href="https://github.com/hadley/forcats" target="_blank">forcats</a>, for factors.</li>
<li><a rel="nofollow" href="https://github.com/hadley/haven" target="_blank">haven</a>, for SPSS, SAS and Stata<br>
files.</li>
<li><a rel="nofollow" href="https://github.com/hadley/readxl" target="_blank">readxl</a>, for <code>.xls</code> and <code>.xlsx</code><br>
files.</li>
<li><a rel="nofollow" href="https://github.com/hadley/modelr" target="_blank">modelr</a>, for modelling within a<br>
pipeline</li>
<li><a rel="nofollow" href="https://github.com/dgrtwo/broom" target="_blank">broom</a>, for turning models into<br>
tidy data</li>
<li><a rel="nofollow" href="http://ggplot2.tidyverse.org/" target="_blank">ggplot2</a>, for data visualisation.</li>
<li><a rel="nofollow" href="http://dplyr.tidyverse.org/" target="_blank">dplyr</a>, for data manipulation.</li>
<li><a rel="nofollow" href="http://tidyr.tidyverse.org/" target="_blank">tidyr</a>, for data tidying.</li>
<li><a rel="nofollow" href="http://readr.tidyverse.org/" target="_blank">readr</a>, for data import.</li>
<li><a rel="nofollow" href="http://purrr.tidyverse.org/" target="_blank">purrr</a>, for functional programming.</li>
<li><a rel="nofollow" href="http://tibble.tidyverse.org/" target="_blank">tibble</a>, for tibbles, a modern<br>
re-imagining of data frames.</li>
</ul>
<h2>Leaving Feedback</h2>
<p>If you like <strong>CGPfunctions</strong>, please consider leaving <a rel="nofollow" href="https://github.com/ibecav/CGPfunctions/issues" target="_blank">feedback<br>
here</a>.</p>
<h2>Contributing</h2>
<p>Contributions in the form of feedback, comments, code, and bug reports<br>
are most welcome. How to contribute:</p>
<ul>
<li>Issues, bug reports, and wish lists: <a rel="nofollow" href="https://github.com/ibecav/CGPfunctions/issues" target="_blank">File a GitHub<br>
issue</a>.</li>
<li>Contact the maintainer ibecav at gmail.com by email.</li>
</ul>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://ibecav.github.io/announce04/"> Chuck Powell</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/QgkiwJbD8Nw" height="1"></a></div>