官术网_书友最值得收藏!

Trellising

Filtering is very powerful as it allows you to filter out values from the dataset so that you can focus on what's important at any particular point. However, it's not very useful for comparing different subsets of the data. In the preceding example, we were comparing histograms by marking (selecting) different parts of the data and filtering out various rows of data. We can look at much more at a single glance by using trellising. Trellising splits visualizations into panels so that you can see subsets of the data all at the same time.

I suggest trellising by pclass—this is so that we can compare the survival rates of passengers in the various classes on board the Titanic:

  1. Reset the filters as described in Step 6 in the Using filters section.
  2. From the data panel, click the pclass column and drag it onto the age histogram. You'll see a pop-up panel appear:
  3. Drop pclass onto Use 'pclass' on the vertical trellis axis.:
  1. Notice what happens to the visualization (presuming we have selected all the data in the main bar chart):
  1. We have some fresh insights!
    • Unsurprisingly, but rather unfortunately, your chance of survival was much better as a first-class passenger than if you were from any other class. Notice the 80-year-old first-class passenger all on his own.
    • Third-class passengers were much more numerous than second-class ones, but their survival rate was much, much worse than the other classes'.
    • All second-class children survived.
  1. Experiment with marking different subsets of the data in the main bar chart and observe how the trellised histogram behaves - see if you can gain additional insights!
主站蜘蛛池模板: 石屏县| 伊川县| 镇平县| 名山县| 锦屏县| 即墨市| 崇阳县| 漳平市| 建平县| 桐庐县| 张家川| 六盘水市| 雅江县| 准格尔旗| 阿拉善左旗| 嘉定区| 射洪县| 凤台县| 尖扎县| 田东县| 敦煌市| 东乡族自治县| 赣州市| 安陆市| 汉川市| 安远县| 平远县| 勐海县| 呼伦贝尔市| 米易县| 南木林县| 康马县| 合肥市| 古丈县| 台安县| 重庆市| 开封县| 十堰市| 荃湾区| 永清县| 离岛区|