Custom Web-Based Data Visualizations Using Plotly and R Notebooks

Lillian Pierson, P.E.

Lillian Pierson, P.E.

Reading Time: 3 minutes

Custom Web-Based Data Visualizations Using Plotly and R Notebooks

Want to build awesome interactive, web-based, collaborative data visualizations for free using R? You can do that with Plot.ly! What Plot.ly does is take your R code, and based on that, produces really nice interactive charts in D3.js. This allows you to build great customized, sharable data visualizations without having to get all caught up in learning how to code in JavaScript and D3.js. Below you can see a little of what is possible with Plot.ly in R.

I built these charts for my private mastery students group, and I will be providing them exclusive instructional videos that explain the process of building them in a concise step-by-step format. I need to reserve those videos for my students, but I’d still love to be part of your learning journey as well. How are you at self-teaching? If you’re already a coder, that might be an option.

If you’d like to learn to build charts like these from here, you can teach yourself by following this process:

  1. Go to my Plot.ly profile.
  2. Look through the data visualizations you see posted there. Click the “VIEW” button on one of the charts that is most interesting to you.
  3. The data viz will open up on its own webpage. The plot is shown because, by default, the “Plot” tab is selected. Choose the “Code” tab instead.
  4. In the drop down on the upper-right, you can choose to see the code that supports the data visualization. You can choose from many languages, because Plot.ly is able to convert in and out of all the source languages and the D3.js output. Your options include json, Python, R, Julia, node.js, etc. Choose R.
  5. (optional) In the upper-right of the page, choose “Export” to export the source code in a variety of different languages.
  6. Study the code, and back into how the data visualizations are constructed. I suggest starting with the simplest plots first.

If you don’t want to look through all the data visualizations, you can also just get the original R Notebooks I created. They’re hosted at my RPubs account as follows:

*Please note, these notebooks will only work if you sign up for Plot.ly and get your own api key and username

And for the data visualizations. The following is a sampling of outputs you can generate using Plot.ly. Notice how they are super interactive? They are also very easy to post on your site or to use for collaborating and sharing with peers (using a link to a chart’s home on the Plot.ly platform). All good stuff!! That’s why I thought it was important to share this with you and with my students.

One last thing… if you’d like to be part of the private students group, it’s possible – just not at this exact moment. I am updating and expanding the course. It will reopen in the next few months. If you want, sign-up on the waitlist and I will personally email you when they’ve been released publicly. The waitlist Google doc is here: https://goo.gl/forms/aJLQBoeHwmOxDS4t2

Basic Chart Types

R Notebook: http://rpubs.com/bigdatagal/249775

Line Charts

Bar Charts


Pie Charts

Statistical Plots

R Notebook: https://rpubs.com/bigdatagal/249723

Histograms

Boxplots

Scatter Charts


Spatial Maps

R Notebook: https://rpubs.com/bigdatagal/249725

Point Maps

Choropleths

Want access to the instructional videos that teach you how to make these for yourself? The course is closed at the moment, but will reopen REAL soon. Sign-up on the waitlist and I will let you know when they’ve been released publicly. The waitlist Google doc is here: https://goo.gl/forms/aJLQBoeHwmOxDS4t2

Got questions on these demos? No problem! Write them in the comments section below and I will get you an answer. Slay on data ninjas.

Join the 25,000 other tech leaders & founders who've discovered powerful startup, growth, product & marketing tips that we only share inside our community newsletter...

Zero spam, guaranteed. Unsubscribe anytime.

Data-Mania Newsletter

A newsletter exclusively created for technology leaders & entrepreneurs…

Hi, I’m Lillian Pierson, Data-Mania’s founder. We welcome you to our little corner of the internet. Our mission is to help technology leaders & entrepreneurs make more money with less effort and hassle.

We are 100% committed to you having an AMAZING ✨ experience – that, of course, involves no spam.

Join the newsletter to get our Data & Technology Entrepreneur’s Toolkit

Newsletter subscribers get all kinds of exclusive, special free goodies that we don’t give out to anyone else. Join today to get our Data & Technology Entrepreneur’s Toolkit – a collection of 32 tools & processes that’ll actually grow your business!

RELATED

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

STRATEGIES. STARTUPS. GROWTH.

proven, data-driven strategies that help tech startup founders & leaders make more money with less effort & hassle.

© Data-Mania, 2012 - 2022+, All Rights Reserved - Terms & Conditions - Privacy Policy | Designed by Kelly Creative Co. | PRODUCTS PROTECTED BY COPYSCAPE

Completion

Want More Opportunity From Your Data Career?

tAKE OUR FUN, 45-SECOND QUIZ AND You'll get PERSONALIZED DATA CAREER PATH RECOMMENDATIONS that show YOU EXACTLY WHAT YOU NEED TO FOCUS ON TO GET MORE OPPORTUNITY, IMPACT, AND EARNINGS From Your DAta Career

How it works: We analyze your responses and map them out to the ideal data role for you based on your data skills / background, personality traits, and passions.