List

The RStudio addins manager was recently introduced and makes for great tool. Spread the word!

My favourite addin by far is the ggplot theme assist addin, helping you to organize your ggplot!

 

 

RStudio addins manager

I’m reblogging this from: https://csgillespie.wordpress.com/2016/04/01/rstudio-addins-manager/ Thanks to Colin Gillespie!

April 1, 2016

RStudio Addins Manager

RStudio addins let you execute a bit of R code or a Shiny app through the RStudio IDE, either via the Addins dropdown menu or with a keyboard shortcut. This package is an RStudio addin for managing other addins. To run these addins, you need the latest version of RStudio.

Installation

The package can be installed via devtools

## Need the latest version of DT as well
devtools::install_github('rstudio/DT')
devtools::install_github("csgillespie/addinmanager")

Running addins

After installing the package, the Addins menu toolbar will be populated with a new addin called Addin Manager. When you launch this addin, a DT table will be launched:

Image 2016-04-06 at 3.29 PM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In the screenshot above, the highlighted addins, shinyjs and ggThemeAssit, indicate that this addins have already installed.

When you click Done

  • Highlighted addins will be installed.
  • Un-highlighted addins will be removed.

Simple!

Including your addin

Just fork and alter the addin file which is located in the inst/extdata directory of the package. This file is a csv file with three columns:

  • addin Name/title
  • Brief Description
  • Package. If the package is only on github, use name/repo.

The initial list of addins was obtain from daattali’s repo.

 

GGplot theme assist

I’m reblogging this from: https://github.com/calligross/ggthemeassist Thanks to user calligross!

 

CRAN Downloads

ggThemeAssist is a RStudio-Addin that uses the rstudioapi package and provides a GUI for editing ggplot2 themes.

For a full list of features see NEWS.

User interface issues

There are two known problems with the UI which easily can be fixed:

  1. On linux and windows, please ensure that you’ve installed at least shiny version 0.13.1.
  2. We realized shorty after the cran release that there is an issue with smaller screens. Some users may expirience an unapropiate sized plot. This issue has been fixed in version 0.1.1, which can be installed from github (please see below).

Installation

Please be aware that you need the most recent (stable) release of RStudio (v0.99.878 or later). Additionally, ggThemeAssist depends on shiny and miniUI.

Install from Github

You can install the latest version of ggThemeAssist from Github using the devtools package:

if (!requireNamespace("devtools", quietly = TRUE))
  install.packages("devtools")

devtools::install_github("calligross/ggthemeassist")

Install from CRAN

The first stable version of ggThemeAssist, v0.1.0, is now available on CRAN:

install.packages("ggThemeAssist")

We advise users to install from github. Due to CRAN policies and the rapid development of ggThemeAssist, many new features and bugfixes will be available on CRAN several weeks later.

Usage

After installing, ggThemeAssist is available in the Addins menu within RStudio.

To edit ggplot2 themes, just highlight a ggplot2 object in your current script and run the Addin from the Addins menu. ggplot2 will analyze your current plot, update its defaults to your current specification and give you a preview. Use the input widgets to get your ideas into shape. After terminating ggThemeAssist a character string containing your desired changes in standard ggplot2 notation is inserted in your script. Re-running your script now produces the plot you just configured using ggThemeAssist.

 

click here for a GIF example of how ggplot theme assist works

 

 

Leave a Reply

  Posts

1 2 3
November 23rd, 2016

#ggforce for accelerating #ggplot2 in #dataviz

November 20th, 2016

November 16th, 2016

ggplot2 2.2.0 #dataviz #R #datascience @rstudio

November 16th, 2016

ggedit add-on for #ggplot2 #dataviz #R #datascience

August 27th, 2016

#R Packages for #Data Access

August 16th, 2016

Getting Your Colleagues Hooked on #R

August 14th, 2016

Convolutional #neuralnetwork in #R (MXNet package) #MachineLearning #DataScience

June 3rd, 2016

Mad Hatter Explains Support Vector Machines #scicomm #machinelearning #SVM #datascience

May 11th, 2016

What’s the difference between machine learning, statistics, and data mining?

April 6th, 2016

Plotter app for interactive plotting of ggplots, on shinyapps.io or locally.