Loading...

Cork Gaines wrote about the HR trend in baseball since testing started for performance enhancing drugs.  He presented a chart of the trend (surprising effective given his past charts), but he never answered his own question….is testing working? 

One way to determine the answer is through comparisons to other statistics.

I downloaded the season averages across both leagues and MLB in total from baseball-reference and built this interactive analysis.  The stats are order by batting stats then pitching stats.

This viz allows you to compare home runs to many other statistics through the selectors at the top right.  In addition you can:

  1. View any two statistics to look for trends by choosing a primary measure and a comparison
  2. Filter the time frame to all years, the pre-testing era, and the testing era (1993+)
  3. Filter the leagues to focus your analysis
  4. Click on a league at the bottom to highlight that league

In this initial view of HR vs. ERA, I see a couple of things:

  1. HR are on a slow descent in the testing era, especially since 2000
  2. ERA is in a similar decline, possibly indicating that improved pitches has had as much of an impact as testing
  3. Batting Average has remained flat.  This means that the reduction in HR has not impacted BA.
  4. Teams are simply scoring fewer runs, likely due to the reduction in long balls
  5. The trend in complete games is despicable

What do you see?  Play around with the different stats and see if you can draw any conclusions.

HR vs. ERA

This tip is a follow up to my post about asking How common is your birthday?.  In this post, I created a heat map and Matt Stiles asked me if I could write a tutorial showing how I did it so quickly in Tableau.

The steps are for creating the viz only.  I’m assuming you already connected to the data.

Step 1 – Hold the CTRL key and click the Day, Month and Rank fields (they should all be highlighted after you choose them)

image

Step 2 – Open the Show Me window on the toolbar and click on the Highlight Table option

image

You should see the view below with Days in the columns and Months in the rows.

image

Step 3 – Click on the swap icon to place Day on the row shelf and the Month on the column shelf

image

Step 4 – Right click on the Month column label and choose Hide Field Labels for Columns

image

Step 5 – Drag the Rank measure off of the Label shelf

image

You should now this view.

image

Step 6 – Double click the color shelf to show the Edit Colors window.  Choose Orange from the Pallet list and the Reversed option, then click OK.

image

You need to choose the reverse option if you want the highest ranking days to be the darkest.  You final view should look like this.

image

That’s it!  Six steps, less than 30 seconds, and you have a beautiful heat map. 

Give it a shot.

  • Get the data here
  • See my final viz (including interactivity) here

Matt Stiles posted a heat map on his blog yesterday that I thought was pretty well done.  I decided to get the data from NYTimes.com and recreate it in Tableau.

It takes under 20 seconds and under 10 clicks to create it in Tableau, more like 15 seconds if you’ve been using Tableau longer.

Matt chose a brownish color pallet, but I wanted to try lots of different colors.  Tableau makes is incredibly simple to try out many options very quickly.  I tested green, blue, gray and orange-blue pallets before settling on an orange pallet.  For my eye, the orange pallet made distinguishing the colors easiest.

Creating this as an interactive viz in Tableau allows you to provide the reader/viewer/interactor with more information.  Hover over your birthday and you will see exactly where it ranks.  Try it! 

In a static version, you’re left to guess at the approximate range in which it falls.

Most Common Birthdays

Check out Matt’s post and the comments.  There are some interesting insights from the readers including:

  • Matt struggled with getting the colors just right using Illustrator.  With Tableau, it’s all built in.  There’s no need to tinker.
  • Doctors apparently don’t like having their vacations disturbed.  Check out how around major holidays (July 4th, Thanksgiving, Christmas) there a fewer babies born.
  • September clearly has many of the top days (in fact it has all of the top 10), but July and August aren’t far behind.  It looks like people conceive during all of those Thanksgiving, Christmas and New Year’s parties.
  • A reader noted that the 13th seems to be least common on average.  Perhaps that’s because many people see that as an unlucky day.
If you're anything like me, you love finding awesome, innovative Tableau visualizations.  I get so much inspiration from the Tableau Public Gallery and an ever growing list of bloggers.

As of today, Tableau will be "sharing one beautiful visual story a day".  How cool is that?

Subcription/follow options include:
Their first daily viz is by Ben Jones of Data Remixed.  If every viz of the day is anywhere near the quality of Ben's, we're in for a real treat.


<a href="#"><img alt="Can U.S. Presidents Predict Unemployment? " src="http://public.tableausoftware.com/static/images/Fo/ForecastingUnemployment/ForecastError/1_rss.png" style="border: none" /></a>
Going to Carto Narratives in Zurich soon (11th june - 13th june) to participate in a workshop with some great people, William Cartwright, Jeremy Wood, Sebastien Caquard... loads of others I've still to have a good read of their proposals. Read mine on augmented reality/hyper real/emotion + joy http://cartonarratives.wordpress.com/projects/ Share your views of Bachelard as [...] Related posts:
  1. Stockport Narratives
          Please forgive if I haven't been blogging as often as I could but you can keep a regular update on here: http://pinterest.com/visualthinkmap/interesting-things-on-the-web-shift-space/   Much like I used too on tumblr: http://visualthinkmap.tumblr.com/ Tweet This! Share this on Facebook Share this on del.icio.us Share this on Tumblr Post on Google Buzz Subscribe to [...] Related posts:
  1. Checkout an Interview of me with Shrieking Violets & Shift-Space
  2. Alice in Apps Land - Future Everything/Victoria Baths
Checkout an interview of us (shift-space.co.uk) describing our practice, zines, little gems app, vb workshop and general views on education/visual practice... http://www.theshriekingviolets.blogspot.co.uk/2012/05/alice-in-apps-land-workshop-from-zines.html   Tweet This! Share this on Facebook Share this on del.icio.us Share this on Tumblr Post on Google Buzz Subscribe to the comments for this post? Stumble upon something good? Share it on [...] Related posts:
  1. Manuel Lima | Visual Complexity Interview
Working in  a collective with my colleagues, Shift-Space are very excited to be a part of the futureeverything festival taking place in Manchester in May. Natalie aka, the shrieking violet has invited us to run some workshops as part of the fanzine convention taking place on the Saturday and we also plan to have our own display [...] Related posts:
  1. Checkout an Interview of me with Shrieking Violets & Shift-Space
  2. My Android Apps
  3. Visualthinkmap on Pinterest

Yesterday I wrote about a method for embedding a presentation within a Tableau dashboard.  Of course, this spawned the opposite question:
Is there a way to embed a Tableau Dashboard in a PowerPoint presentation?
Good news!  The answer is YES!  Here’s how.

Step 1 – Install the LiveWeb PowerPoint add-in (instructions via LiveWeb)
  1. Download the add-in here
  2. Extract the contents of the zip to a folder
  3. Launch PowerPoint
  4. Click on Tools | Add-ins to bring up the add-ins window
  5. Click on Add to bring up the 'Add New PowerPoint Add-in' dialog box
  6. Navigate to the folder where the contents of the zip file was extracted and select 'LiveWeb.ppa' and click on OK.
  7. You might be prompted with the macro virus warning. Enable the macros. When the Add-in is properly loaded, it will display a 'X' against the add-in name.
That's it. You have successfully loaded the add-in.  You should see the LiveWeb add-in appear on the “Insert” tab of PowerPoint.


Step 2 – Go to your Tableau dashboard (either on Tableau Public or Tableau Server) and copy the URL link for the viz. 


You have two options for getting the URL for the viz.
  1. From the browser address
  2. Click on the Share button on the bottom left of the viz and copy the Email link

Step 3 – Go back to PowerPoint and click on the Web Page option on the LiveWeb add-in.  A wizard will appear.

Step 4 – Enter the URL for your viz from Step 2, click Add, then click Next





Step 5 – Choose the “Yes, refresh web page automatically” option.  This ensures that your viz updates live from the source (Public or Server) each time you launch the PowerPoint presentation.  Click Next. 


Step 6 – Choose the size and position of the viz in the slide.  I prefer 100% so that the viz is as big as possible, but the default is 90%.  Click Next.


Step 7 – Click Finish


You should receive the following message if you successfully embedded the web page.


Step 8 – Launch the presentation


Some notes and observations:
  1. The viz might be a bit slower to load than when viewed in Public or Server.  This viz took about 10 seconds to load.
  2. It can be tricky to get the mouse pointer to show up.  You’ll have to play around with it to see what I mean.
That’s it!  Good luck and enjoy!

Monday night I had the honor of running a training session for the LA Tableau User Group.  You can download the presentation and Tableau workbook here.

One of the features of Tableau that I showed them was a PowerPoint presentation embedded in a Tableau dashboard.  I use this technique quite often as it allows me to stay in one tool, thereby negating the need to flip back and forth to PowerPoint.

In this blog post, I will review the steps to use this functionality.   

This example assumes you are using Google Docs to host your presentation.  This technique also works with presentations hosted on SharePoint.  Any other web-based presentation solution should work as well.

Step 1 – Create a new dashboard in Tableau

Step 2 – Navigate to your presentation on the web and open it


Step 3 – In Google Docs, click on Start Presentation


Step 4 – Click on the URL to highlight it, right-click and choose Copy


Step 5 – Go back to Tableau and drag the Web Page object onto the blank dashboard


Step 6 – Once you drop the Web Page object onto the dashboard, the Edit URL window appears.  Paste the URL for your presentation (from Step 4) and click OK.


That’s it!  Your presentation is now embedded within a Tableau dashboard.


If you don’t like the black space to either size of the presentation, the optimal size for the window (assuming you’re using a presentation from Google Docs) is 792 x 600.


Give it a shot.  I bet you’ll use this over and over again.

Top Contributors

Share

Powered by