Showing posts with label Tableau. Show all posts
Showing posts with label Tableau. Show all posts

Monday, 12 November 2018

Bath - location of ANPRs

I didn't manage to make it to the Bath Hacked day on analysing road traffic data, but I'd still like to investigate a little. Big shout to the Bathhacked folks for their work!

First off, a quick visualisation of the locations of the automated number plate readers (ANPRs). I did this in Tableau, since that's quickest for me. If you don't know Bath, sorry that it's a bit cryptic, but if you do, I suspect it gives enough information. Might be better with a bit of road information behind, but that would take longer!

The ANPRs mostly come in in-out pairs, and in 4 "radial groups": basically one a long way out, then 3 concentric circles. They're also identified by direction of travel, NESW, but given what I have in mind, this is less interesting so I didn't show it.


Saturday, 29 September 2018

Visualising the Taxi Times

I've created a quick Tableau Public story to show and explain some of the CODA taxi time data (see previous blog post).

Since I last looked, Tableau have added in-built support for airport codes as geocodes, so mapping is just getting easier. But I still find I can't decide whether to stick to tidy data (in the R tidyverse sense: one value per row) or have more columns; there seem to be graphs in Tableau that I can draw with one and not the other, or vice versa.


Sunday, 17 December 2017

2017 Cycle-Commuting now complete.

I've updated the cycle-commuting Tableau dashboard with the remainder of the 2017 data, including the weather data. A wet and slushy end to the year. And more business travel meant less commuting overall.

I still haven't quite worked out why there is so much quarter-to-quarter variation; 2017 showed a repeat of the pattern of 2016, so this looks like seasonality rather than randomness. I'm sure traffic, daylight and weather have something to do with it. For example, there's a lot less traffic for much of the Q3, since the schools are on holiday.

Further analysis is for another day, but ideas certainly welcome. You have the data.

I've decided that 3 years is quite enough of this sort of recording, so for cycling at least, that's all folks!


Saturday, 2 September 2017

Passenger update, finally

It seems it's always October before the last calendar year is complete. 2017 seems no exception. 

I have updated the passenger data from Eurostat in the dashboard. Congratulations to the Netherlands for already providing data as far as April 2017. Six laggards are still short of data in 2016. October, maybe.


Energy - nearly 8 years

Just updated the household energy consumption Tableau - the 8th year of data will be complete next week! 

Maybe I should link it to the weather information - like the cycling dashboard, which has also been brought up-to-date. Seem not to have been in the office much over the Summer, so numbers are down. But speeds up, as usual at this time of year.

Monday, 16 January 2017

Aircraft Routes updated (B787 A350)

I've updated the maps of the announced routes of B787 and A350. See the Tableau for the latest data, adapted from airportspotting.com.

Monday, 31 October 2016

Cycling into the wind

So now I've merged the wind data that I was using with the thorn plots and the cycling data on the Tableau public dashboard. It uses an average wind speed and direction based on the two metar observations nearest to the mid-time of the ride. 

I wondered how to show wind direction, but in the end a simple grouping by quadrant was easy to do and good enough to separate the data into meaningful groups.

The effect of windspeed on the way home, when the wind is in the SW is pretty clear, I think.

I just wish I could get a sensible data between start&end calculated field in the title. Could not get this to work in Tableau.



Sunday, 9 October 2016

Routes of A350 and B787 - updated visualisation

The latest version of the routes map has been updated to use great circle links between airports. There seem to be 2 options for this - getting Tableau or R to do the work. Getting R to do the work was easier for me (just an application of gcIntermediate()) than getting to grips with interpolation functions in Tableau. The cost is that you pass a lot of extra data. I suppose I could have used 2 files and done a join in Tableau instead, but the volumes are not huge. 

There are tableau workbooks around to do the work, but from tableau public it doesn't seem to be possible to open and copy the calculations as suggested.


Saturday, 8 October 2016

Tableau visualisation of routes by new aircraft types: B787 and A350

The previous post gave a glimpse of the technical, R, side of processing some data compiled by spotters of where the new aircraft, B787 and A350, are flying. The R took a while to get right, but once the data were compiled, getting them into Tableau was a breeze.

There's a beta version here. Beta, mostly in the sense that there are still 1 or 2 glitches in the geo-coding of the data (so in R), but I thought it might be easier to see them given a Tableau map. I like the way the graph on the left acts as a filter for the map - for example comparing the routes of ANA and Japan Airlines.

And beta too, probably because the viz could also be improved. Comments welcome.

 

Sunday, 3 July 2016

Tableau URLs for aviation stats.

The Pax (& PaxTextVn), dashboards now work with URLs to pass parameters, but it has been a dull process. Basically, in spite of what I read on forums and Tableau help, it does not seem to be possible to pass a space as %20. After many different attempts, I've just had to remove spaces from some data fields, and some parameter and field names.

So now, you can access the data directly with a URL such as:

https://public.tableau.com/profile/david.marsh#!/vizhome/Pax/LoadFactors&Year=2014&GeoDepLevel=Region&GeoDepLevelSelected=EU28&GeoDesLevel=Region

or 

https://public.tableau.com/profile/david.marsh#!/vizhome/Pax/DeparturePatterns&Year=2012

In the latter case, it's not yet simple to work out how to pass the airport parameter. Watch this space for improvements here.


Thursday, 5 May 2016

Air passenger data updated

I've also updated the passenger data. Again, all states seem to have provided data up to at least June 2015. See the link above.

For those of you using SDMX, there are more code changes to download these data:
  • PASS_BRD_DEP has become PAS_BRD_DEP
  • PASS_ST_DEP has become ST_PAS_DEP
  • PASS_CAF_DEP has become CAF_PAS_DEP

Cargo updated

It's been a while since I updated the cargo dashboard in Tableau.
Now it has the latest 2015 data. These are complete for 31 states from Jan 2008 to June 2015. There is already data for 20 states in December 2015, but we'll have to wait for the full 2015 data.

See the link at the top of the page for access to Tableau.

If any of you are using SDMX to access these Eurostat aviation data (avia_gor_xx), note that they've changed a code for one of the dimensions: from FRM_CAF_DEP to CAF_FRM_DEP. Obvious! Apart from that the update process was smooth (thanks to the RJSDMX package maintainers in R, and all the other R and Tableau folk).


Monday, 28 March 2016

Tableau Hex Map for Europe

Solved the problem I was having with different parts of the dashboard having different colour schemes - after filtering.  I had been assigning colours per worksheet - you need to reset these if you've done it and go back to the original field in the data and set the colour there. (Hint was from the kind answer to this question.)

Obvious, really.

I also managed to get rid of the persistent axis. Right clicking in the row or column shelf and choosing format, click on the 'line' option (a brush) in the format and here was a case where it had not already been set to 'none' (in spite of trying!).


Sunday, 27 March 2016

Tile-based maps and Service Unit Forecasts

I have been experimenting with tile-based maps in Tableau.

The use-case is showing growth of total en route service units (actual and forecast), and using the map as a way to select a subset of a large table. The data are from the EUROCONTROL/STATFOR forecast (Feb 16, Annex 5).

The place to start for hints on how to do this in Tableau is Sir Vizalot, though some of the links in this seem to be broken.

My specific steps were:
1) I'm interested in a specific set of European States. I used 'keynote' (powerpoint) to create hex tiles and move them around until I had an initial layout of European countries I thought was reasonable.
2) I converted this into a table of coordinates, using the ISO 2-letter country codes (and using IA and IC for Azores and Canaries, respectively).
3) I pulled these data into Tableau, including a translation table from ISO to EUROCONTROL's ICAO-based State codes. Tableau does a nice job of choosing the right joins.
4) Setting up the hex map follows smoothly using Sir Vizalot's advice, though it took me a while to realise I shouldn't start worrying about size & shape of the 'map' until it was embedded in a dashboard. And the alignment of the labels defaults to off the hex - fixed using the label:alignment option.

A couple of things I'm not yet happy with: the colour scale for the growth legend doesn't seem fully coordinated between the map and bubble plot; and I'm left with an axis which should have been turned off, but is still there. Hints welcome!

Here's what it looks like:



and here's a hex you can load into your Tableau.





Sunday, 24 January 2016

Flow-control in the flight data!

In tableau, I've not got the functionality out of geographical hierarchies that I was expecting (maybe I'm not doing it right). So instead, I've built a set of prompts that now allow you to look at flows of flights at a variety of different levels of aggregation such as airport-airport, airport-region, airport-country, or country-country.

Not as difficult as I thought it would be, but hat-tip to vizpainter for putting me on the right track.

So check out the new tab in the 'pax' dashboard, that focuses on load factors and aircraft size!

More energy

I've updated the energy dashboard and it shows clearly the benefits of the new boiler, but also the mild Winter we've had so far. Looking forward to the bill this year!


Sunday, 4 October 2015

2014 data are complete, finally!

The passenger and cargo data from Eurostat have finally been updated, so I've updated them in the main dashboards. 2014 data are complete, but 2015 is still very patchy so it has not been loaded at all.

I have to say, refreshing the data in Tableau is a doddle!



Sunday, 8 February 2015

Plotting GPS routes

I wanted to try something different in Tableau - its ability to plot geographical routes.

So I've loaded up some routes from a bike GPS, using R to manipulate multiple files and add speed calculations - though I'm sure the haversine formula could also easily have been implemented in tableau to get the distances. 

It took me a while to realise the return journey from home is longer by several minutes. Check out the speed and you can guess where the incline is with me, or against. 

Sunday, 16 November 2014

Tableau - More on Top N

In my posts of 3 & 5 Nov, I was looking at how to plot monthly graphs for just the top N airports out of many. Originally I achieved this through a complicated method (3/11) creating a combined dimension, but it's rather easier than that.

This is for graphs of main departure airports to a single destination.
  1. As before, create a graph by putting month in the column shelf, and one or more measures in the row shelf (eg passengers and flights).
  2. Filter by year  (I only want to show a single year's seasonal cycle) and destination airport.
  3. Create a calculated field which is just Index() - I named it Rank (which is more or less what it is). Check that it's discrete.
  4. Filter on Rank, and from the drop-down select 'edit table calculation'.
  5. Choose sort by departing pax descending (so rank 1 is the biggest) - or whatever you want to rank by.
  6. In partitioning, select airport of departure.
  7. When you click OK you get the description something like: Results are computed along ADEP (sorted descending by Sum of Departing Pax) for each Month of Month. In your case, in place of ADEP (=airport of departure) you will see the dimension for each value of which you want a line on your graph.
  8. From the drop-down on rank in the filter pane, select filter and select the top N boxes, however many you want.
So, it still has quite a few steps, but it avoids calculating combo dimensions. 

You can see the results in the 'seasonality at main departure airports' graph in the DepFromAP dashboard. I decided not to make N user selectable, just adds complication for the user.



Sunday, 9 November 2014

Energy dashboard again - more on year to date

Getting to grips with how to partition:

  1. Calculating a reference ID for each year such as Div(datediff('week',[BaseDate],[Date]),52) 
  2. which can easily be converted to a readable label: STR(9+[YrID])+"/"+Str(10+[YrID])
  3. and using first() to pull out the first value in the partition (or more accurately lookup(max([gas]),first()).


That's just what's needed for the energy data, which I choose to start counting from mid September ([BaseDate]), and where they are meter readings, so I need to keep taking differences to get meaningful values.