Giter VIP home page Giter VIP logo

d3book's Introduction

:octocat: A Guide to my GitHub Repos

๐Ÿ“ฆ Packages

ggformat -- RStudio add-in to pretty up your ggplot2 code

redav -- two useful functions: one for plotting biplots and the other for plotting missing values. More to come.

wonderapi -- facilitates calling the CDC Wonder API from R to import data

๐Ÿ“š Online Books

D3 for R Users source code

R Dataset Guide -- provides info about number and type of variables in built-in datasets, helpful for creating exercises or lecture examples source code

๐ŸŽจ Other Useful Stuff

syntax -- Quarto syntax highlighting theme examples (plus the option to create your own!)

๐Ÿง‘โ€๐Ÿซ Course Resources

1201 -- source code for 1201.info

edav2 -- source code for edav.info

๐Ÿ—๏ธ Quarto Templates

quarto-edav-template -- template for creating a Quarto book in RStudio, published on GitHub Pages for EDAV final project Video tutorial

website-template -- template for creating a Quarto web site in RStudio, published on GitHub Pages Video tutorial

๐Ÿ—๏ธ Bookdown Templates (outdated, Quarto recommended instead)

bookdown-template -- general bookdown template, to get started see How to create a bookdown book in 5 minutes

EDAVtemplate -- template for Exploratory Data Analysis and Visualization class

IMLVtemplate -- template for Interpretable Machine Learning w/ Visualization class

๐Ÿงฐ Workshop Materials

csp2024 -- CSP: Effective Graphs with ggplot2 (New Orleans, 2024)

sdss2023 -- SDSS: Effective Graphs with ggplot2 (St. Louis, 2023)

nycasa -- ASA NYC Metro: Exploratory Data Analysis with R (2023)

pkgdev -- RForwards: R Package Development Workshop (2022)

graphcat21 -- Graphing Multivariate Categorical Data in R (with Ludmila Janda) (2021)

graphcat -- useR2021: Graphing Multivariate Categorical Data in R (with Ludmila Janda) (2021)

panelplots -- ASA NYC Metro: Panel Plots (with Naomi Robbins) (2019)

BRL-workshops -- Columbia BRL: EDA / Data Transformation (2019)

RLadies -- RLadies NYC: purrr (2018), heatmaps (2017)

d3book's People

Contributors

anniechencan avatar cpaynerogers avatar jasonsqz avatar jenn2325 avatar jtr13 avatar kassiepapasotiriou avatar mutianwang avatar tracy3057 avatar xiaoyu-su-20 avatar yiyangnju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

d3book's Issues

5.5 shallow copy

Here's the code:
var x = [12, 34, 1, 43, 90, 72]; // try me
var y = x;
d3.quantile(y.sort(d3.ascending), .25);

I think line 2 should be var y=x.slice(); as is in 5.4.

Interactivity chapter reorganization

7.2 change graphic to a bunch of circles on the svg

7.2.1 d3.select("svg").selectAll("circle").on("click")
(explain: message is added if someone clicks on any circle point: we don't need any information about which circle or its attributes, data, etc.)

7.2.2 change an attribute
d3.select("svg").selectAll("circle").on("click") ...
.attr("fill", "blue");
clicking on a circle changes its attribute (you need to know which circle)

7.2.3 get information about the element that received an event
d3.select("svg").selectAll("circle")
use either cx or r -- should be something that is different for the different circles

7.2.4.
d3.select("svg").selectAll("circle").data([ single array of different values than current ones for radii]).on("click", function(event, d) {
d3.select(event.currentTarget).attr("r", d); ...

example html files for chapter 9

It would be helpful if examples (object_constancy.html and keys.html) )can be independent html files, users can download and practice based on their local environment. Same as other chapters.

Thanks!

General issues

  • change var to const or let as appropriate
  • make all yScale domains fixed and remove code to update them
  • improve consistency between lecture slides and text
  • do not include data bind when defining inner plot group
  • reduce dependencies between chunks run in the console, or add code as needed such as redefining svg
  • clarify which code chunks should be run in the console

Check consistency between chapter and links

This chapter https://jtr13.github.io/d3book/solutions.html#update-enter-and-exit-horizontal-bar-chart has two versions for many of the solutions: in the chapter and standalone files for which links are provided, such as: https://jtr13.github.io/d3book/solutions/general_update_pattern_vertical.html There are discrepancies that need to be fixed. One is that some files have:
.attr("y", (d, i) => 50 * i)
and others have:
.attr("y", (d, i) => 50 * i + 50)
(And the same for x for vertical bar charts.)
All should be 50 * i.

pdf / epub

Hey Team, when clicking the pdf icon a 404 file not found error is thrown.

Also, it would be really cool if this could be downloaded as ePub so it can be read on eReaders.

Thanks,
Oli

Screenshot_2021-02-18-21-58-31-61

typo in 3.7

"Weโ€™ll bind a new set of data to the circles, this time storying the dataset in a variable:"

just a typo
-Zhi Qi
zq2175

d3book

  • section 0.1.2 a bit unclear how to hide the sidebar, maybe say it's on the top bar of the page.

  • section 1.1 downloading the repo is a bit overkill. I think we can just open the page -> right click -> save as -> add .html

  • section 2.3 extra `

  • section 3.2.3 maybe could explain a bit why the graphs can be interactive.

  • section 3.3.1 maybe add a link to download five_green_circles.html again.

  • section 3.5 I did not realize stroke is an attr and used append() first.

  • section 3.5 Upon looking at the solution, I think both .attr("stroke-width", "5") and .attr("stroke-width", 5) works.

  • section 3.7 I think it's more coherent to move that to section 4

  • section 4.3 I refreshed the page for the next section and svg is no longer defined.

  • section 4.8 Maybe add a little bit more explanation.

  • section 5.3.1 inconsistency in var and let

Went through all sections until section 6.

'javascript.info' link doesn't work

Chapter: 2 Web tech

Section: 2.4 JavaScript

javascript.info is an excellent resource for expanding your knowledge beyond the basics.

'javascript.info' link doesn't work

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.