Coder Social home page Coder Social logo

ggplot_exercise_using_diamond_data's Introduction

Data Visualization Exercise

Transforming Data

The data on percentage of instructors over time comes from a 2013 American Association of University Professors (AAUP) report. An excel-based visualization was the starting point of this assignment.

Problems with the orginal visualization

  • Date is a catagorical value making it hard to track trends over time.
  • To many colors becomes confusing; the choice of colors could be more pleasing.
  • Bars and background have shading which is a distracting visual choice.
  • Tilted catagory labels make it hard to read.
  • No labels on x-axis and legend make it unclear what is being compared.
  • Numerical axis does not begin at zero making bars perceptually difficult to compare.

Plotting with ggplot2

Problems resolved with the new plot

  • Date is now a continous variable making it easier to compare trends over time. In addition, it is much easier to see how the dates are not evenly spaced.
  • Colors have been reassigned to the five faculty types increasing visual distinctiveness. In addition, colors have been chosen that are saturated, distict, and pleasing.
  • A flat light gray background makes the plot distinct but doesn't overpower the content.
  • Bold catagory labels make information stand out. In addition color-coded faculty labels makes it easier to match groups.

Problems not resolved with the new plot

  • Numerical axis still does not start at zero. A tradeoff between aestetics and accuracy.

Theme inspired by 538. Colors based on MATLAB default colors.

ggplot_exercise_using_diamond_data's People

Contributors

faustineli 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.