Giter VIP home page Giter VIP logo

shares-triangle's Introduction

Shares-triangle plots

Illustrate three variables that sum to 100 % in a triangle where coordinates are {x, y} and where the redundant third dimension y2 := 100 - x - y is depicted with gridlines and labels. This triangle is also known as the probability triangle, used to depict mixed strategies in games with three actions (e.g., "Rock, paper, scissors").

Example output (graphs/) can be reconstructed by evaluating the notebook SharesTriangle_Maker.nb

Example data (csv/) was retrieved from the World Bank on 2023-01-06, using handpicked API calls here: https://data.worldbank.org/indicator/SP.POP.65UP.TO
The classification into {children, working age, elderly} at age ranges {0-14, 15-64, 65-} is a bit loopy but follows a long tradition across statistical agencies.

Example output

Example plots depict the evolution of age group population shares in selected countries. Data from the World Bank (CC BY-4.0).

Preview plot of the entire shares-triangle

The preview plot shows the location of all data points inside the complete shares triangle. This can be useful for deciding on how to customize the shares-triangle plot.

Customized shares-triangle plot

In this shares-triangle plot some of the graph options were selected at the SharesTriangle_Maker.nb partly based on the look of the above preview plot. Option values that result in a useful graph depend on the data, for example how densely the plotted points are packed inside the triangle.

Custom shares-triangle plot

shares-triangle's People

Contributors

tervio avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.