Code Monkey home page Code Monkey logo

eds-240_data-vis-and-customization's Introduction

EDS 240: Data visualization and customization

This is a workshop written for UCSB MEDS Winter 2023, EDS 240 (Data Visualization and Communication) given on 2 March 2023.

Libraries

# general use
library(tidyverse) # general tidying and visualization: ggplot is loaded by default with tidyverse
library(lterdatasampler) # data we're using comes from this package
library(lubridate) # working with dates
library(here) # folder organization

# extras
library(patchwork) # arranging plots
library(magick) # putting images into ggplots

Code

The code template is here and knitted output is here.

Independent work time tasks

For independent work time, you have a few different options:

a. deconstruct Tidy Tuesday visualizations

Goal: understand how theme options work and/or explore package add-ons to ggplot

Task: recreate Tidy Tuesday visualizations from week 8 (data on Bob Ross paintings). Treat this like a puzzle: you know the end result (the image), but all the pieces you have are in disarray (the theme tools). Try working backwards from the output to see if you can recreate the plot.

See the document for visualizations to recreate.

b. edit visualizations

Goal: improve visualizations from 1 Mar submissions to convey a message (not just showing the data)

Task: revisit the visualizations you submitted and consider two points:

  1. What message am I trying to convey with this figure?
  2. How can I convey that message?
    Sometimes addressing 1) and 2) together mean taking things away (because your figure is too data-dense) or adding things in (because your figure is a map without data on it).

After you've answered 1) and 2) for yourself, write them down and sketch out the plot you would make to address both points. Remake your figure and ask someone to tell you what the main message is (without you telling them what you think it is). It's important that this person is not in your group and doesn't know the details of your group project.

Visual vocabulary

You have already learned about different types of plots for different types of data: this is the Visual Vocabulary. You can also use this flow chart or directory of data visualizations. Additionally, you have learned about visual variables (see lecture slides from 26 Jan).

Mapping activity

If you're stuck, you can also revisit the mapping activity we did in class during week 4. With your group mates, you wrote down the kinds of visualizations you wanted to make and the visual variables you would manipulate in each visualization.

c. revise evaluation plan and digital mock ups

Goal: incorporate feedback into a revised evaluation plan

Task: meet with your group members and carefully consider feedback you have received. As with any feedback: if you agree, incorporate it into your plan; if you disagree, add justification (in text or otherwise) for why you do not need to incorporate that feedback and context for why that feedback doesn't apply to you.

eds-240_data-vis-and-customization's People

Contributors

an-bui 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.