Plotcon 2018 workshop

Carson Sievert

King’s College, New York, NY
November 18-19th, 2017

About the workshop

This workshop is highly interactive. Attendees are expected to participate in hands-on exercises which augment the lecture material and are encouraged to ask questions. To participate in the exercises, attendees should bring a laptop with relevant software installed prior to the workshop. Click here for installation directions.

By the end of this workshop, you should be able to leverage interactive visualization techniques to perform/present data analysis tasks/findings using the R package plotly. Though it would be beneficial to have some prior knowledge of R and ggplot2, we do not require it, and as such, we avoid assuming pre-existing knowledge as much as possible. Furthermore, this workshop is not designed to make you an R programming expert – it’s designed to get you doing powerful things quickly regardless of your experience with R or programming in general.

Accessing materials

Once you’ve opened RStudio via the docker container, open the index.html file in the day1 (or day2) folder. These slides have various examples/content and reference files that reside in your RStudio session.

Alternatively, you may access the slides online: day1 and day2.



NOTE: if you already have Docker and are comfortable running terminal commands, you can skip most of these directions and run: docker run -p 8787:8787 cpsievert/workshops

Docker provides the most seamless installation experience and guarantees consistency in computational results (which is why I highly recommend this installation approach). If you don’t already have Docker, or have never heard of it, don’t worry! I’ll walk you through how to use it for our purposes. First off, download and install the Docker toolbox (completely free to use!). The toolbox ships with a number of things, one of them being a graphical interface called Kitematic which makes it easy to find/download/use Docker images. If you’re comfortable running Docker from the command line, feel free to run the command in the side margin (then open RStudio) and skip the Kitematic directions.

After installing the Docker toolbox, you should be able to find Kitematic in your applications. Go ahead and open it. You should see a welcome page like this:

There is no need to create a Docker Hub account (so go ahead and press ‘skip’ or ‘close’), but we’ll be downloading an image I’ve provided specifically for this workshop from Docker Hub. To download it, just type ‘cpsievert’ in the search bar and ‘create’ the relevant image:

This will download the image, which may take a few minutes (we’re downloading an entire virtual comuting environment!). Once the image is done downloading, you should see something similar to this:

You might need to map docker port 8787 to port 8787 on the host (click gear icon, then go to "Configure Ports" section of the "Hostname/Ports" tab) You might need to map docker port 8787 to port 8787 on the host (click gear icon, then go to “Configure Ports” section of the “Hostname/Ports” tab)

Open RStudio

Finally, point your web browser to http://locahost:8787, and you’ll see a log-in page for RStudio. Enter ‘rstudio’ for both the username and password. Once you see an RStudio window like this one, high-five yourself; you’re all set up for the workshop! 🎉 🎉 🎉

Use 'rstudio' for both login and password. Use ‘rstudio’ for both login and password.

Code of Conduct

We are committed to providing a welcoming and harassment-free experience for everyone, regardless of gender, gender identity and expression, age, sexual orientation, disability, physical appearance, body size, race, ethnicity, religion (or lack thereof), or technology choices. We do not tolerate harassment of conference participants in any form. Sexual language and imagery is not appropriate for any conference venue, including talks, workshops, parties, Twitter and other online media. Participants violating these rules may be sanctioned or expelled from the event at the discretion of the organizers.

This code of conduct applies to all participants, including the organizers and applies to all modes of interaction, both in-person and online, including the Slack channel and Twitter.

Workshop participants agree to:

Need Help?

Please speak with Carson Sievert if you have any concerns.

If any attendee engages in harassing behavior, the workshop organizers may take any lawful action we deem appropriate, including but not limited to warning the offender or asking the offender to leave the workshop. (If you feel you have been unfairly accused of violating this code of conduct, you should contact the workshop team with a concise description of your grievance.)

We welcome your feedback on this event, and thank you for working with us to make it a safe, enjoyable, and friendly experience for everyone who participates.

Parts of above text is licensed CC BY-SA 4.0. Credit to SRCCON and rOpenSci.