Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HW#4 - First cut at D3 plot for final project #154

Open
wants to merge 4 commits into
base: hw4
Choose a base branch
from

Conversation

rcquan
Copy link
Contributor

@rcquan rcquan commented Nov 19, 2014

Homework 4

Author: Ryan Quan (rcquan)
Date: 2014-11-20
GitHub: www.github.com/fryandata/ecstasy

Description

This D3 plot is intended to answer the following question:

Out of all pills sold as ecstasy for a given year, how often was chemical X present?

With the owner's permission, we used R's XML package to scrape XML data from EcstasyData.org. We then used dplyr for data cleaning and wrote the resulting data to JSON using RJSONIO.

TODO

  1. Fix the axis so that movement of points is more apparent.
  2. Remove labels for clump of points below y = 0.05.
  3. Add tooltips for more information about chemical compound on hover.
  4. Add path transitions to make rank changes more apparent between years.
  5. Color points by activity type: "dissociative", "stimulant", etc.
  6. Add zoom feature.
  7. Add option to remove "MDMA" from graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant