VizWiz

Launch, grow, and unlock your career in data
Showing posts with label drugs. Show all posts

November 14, 2022

#MakeoverMonday Week 46 - The Cost of Cocaine & Heroin

No comments

Quite the interesting topic this week. I get an email from The Economist regularly and there was an article about the wholesale price of cocaine. That led me down a rabbit whole and I found the data, but also for heroin and also for retail prices.

On Watch Me Viz, I stuck with simple lines charts that compared the price for a country to the overall price for all of the countries in the data set. I allow the user to choose a drug and a country.

I then wanted to show how to Dynamic Zone Visibility feature works (if you haven't seen it, be sure to watch it back). In the end, a simple dashboard that compares the measures in two ways, allows for some filtering, looks good, and that's it.

Check out the dashboard below the video.



August 11, 2019

#MakeoverMonday: The Social Investment of Clinical Trials

No comments
This week's viz is from Aero Data Lab analyzes clinical trial registration records from 10 large pharmaceutical companies. Here's how to read it:

  1. The trial start date on the x-axis.
  2. The disease/condition of interest on the y-axis.
  3. Each bubble in the figure corresponds to a trial. 
  4. The bubble color corresponds to the company
  5. The bubble size corresponds to the number of human subjects enrolled. 
  6. The bubble shape indicates the trial’s current status.

So basically you need to be able to understand quadruple encoding of the bubbles, which is quite difficult. It's very hard to visualize data that is this dense; kudos to the author for giving it a go.

SOURCE: AERO DATA LAB

WHAT WORKS WELL?
  • The article reference provides a good overall analysis of the data.
  • Including the trial start dates on the x-axis helps understand when the trial took place.

WHAT COULD BE IMPROVED?
  • Too many colors
  • The x-axis labels are slanted.
  • It's way too long (but I understand why it was designed that way).
  • There aren't any legends.
  • There are too many shapes.
  • The bubbles are trying to do too many things at once.
  • Comparisons are very difficult.

WHAT I DID
I had thought about examining the costs, but there isn't an information about the costs, even though the article references it. Instead, I decided to focus on the scale of the enrollees; that is, the number of people participating in each trial.

  • I used BANs for the enrollees per pharmaceutical company. I then used this as a set action to highlight that company in the line chart.
  • I looked at the enrollees per status, but I don't think that makes sense since it's the latest status. 
  • The same applies to the phase; it also only shows the latest phase.
  • I looked at how many enrollees there have been since the start the first trial for each company.
  • I included the enrollees per condition and used a set action for proportional brushing for the company selected.

I'm about to head on holiday for eight days, so I had to get this one out the door.

February 18, 2018

Makeover Monday: Who gets all the medicine money?

5 comments
I had no idea that drug and medicine exports were $318B in 2016 before this week's Makeover Monday. That's crazy! I went in assuming that the US would be the highest since drugs are so stupidly expensive there, but I was clearly wrong; Germany is the clear leader. Apparently there are lots of big pharma companies there.

I love learning something new! Let's take a look at the original viz:


What works well?

  • Resizing the continents by their overall exports makes it obvious that Europe is the largest exporter.
  • I hate packed bubbles, however in this view, the largest countries stand out by double encoding with color.
  • Including the percentages for each continent provides needed context

What could be improved?

  • The packed bubbles make comparisons overly difficult.
  • The color legend uses unequal intervals.
  • Plotting the data on a map doesn't add any context.
  • There's no sense of overall ranking across all countries.
  • If you ask "so what?", there's no answer.

The article that accompanied the viz provided quite a few interesting statistics. It would have been great if these were included in the original viz, but they weren't, so I decided to make something super simple that:

  1. Has an informative title and subtitle
  2. Provides context
  3. Provides insight
  4. Uses color effectively

That's it. Simple, quick. That's how I like my Makeover Mondays.

April 16, 2017

Makeover Monday: Lamotrigine vs. Lamictal - How much does the NHS save by prescribing the generic drug?

No comments
Eva was up to her tricks again this week, providing us with a ridiculously large dataset to play with of prescriptions in the UK.
I've used this dataset before, so I was already pretty comfortable with the data. The viz that she asked us to makeover in underwhelming given the detail of the data behind it.


What works well?
  • Line charts are always very easy to understand
  • Laying the charts out side-by-side allows me to see that while prescriptions have been rising, costs haven't been rising at the same rate.
  • Axes are clearly marked and not too crowded
  • Title tells me what the viz is about, though it's pretty boring
  • Chart titles describe what I'm seeing
  • Using green for the lines, which is the color for pharmacists in the UK

What could be improved?
  • There's no story. Are the trends good or bad?
  • There could be more comparisons and context. Something like cost per prescription makes it easier to understand if costs are going up or down overall.
  • More detailed data, like at the quarterly or monthly level, might show more interesting patterns like if the prescriptions are seasonal.
  • Do these trends apply to all regions in the UK? Does it apply to all medicines?
  • Use a more impactful title.
  • When I look at medical data, I always wonder what it means for me. This viz can't answer that.

For my viz, I wanted to look at two specific drugs. Well really it's the same drug, just in generic and brand name versions. Pharma companies spend a ton of money pushing their new medications, yet the NHS has a responsibility to keep costs down. To help me understand this better, I reviewed Lamictal (brand) vs. Lamotrigine (generic). I chose these because I've taken both of them and know how stupidly expensive the brand can be. If you're curious to know why I took these, I explain at the bottom of the viz.

Special thanks to Johannes Meier for creating this dataset and to EXASOL for hosting it.

May 16, 2012

Is drug testing working in baseball? An interactive analysis.

2 comments

Cork Gaines wrote about the HR trend in baseball since testing started for performance enhancing drugs.  He presented a chart of the trend (surprising effective given his past charts), but he never answered his own question….is testing working? 

One way to determine the answer is through comparisons to other statistics.

I downloaded the season averages across both leagues and MLB in total from baseball-reference and built this interactive analysis.  The stats are order by batting stats then pitching stats.

This viz allows you to compare home runs to many other statistics through the selectors at the top right.  In addition you can:

  1. View any two statistics to look for trends by choosing a primary measure and a comparison
  2. Filter the time frame to all years, the pre-testing era, and the testing era (1993+)
  3. Filter the leagues to focus your analysis
  4. Click on a league at the bottom to highlight that league

In this initial view of HR vs. ERA, I see a couple of things:

  1. HR are on a slow descent in the testing era, especially since 2000
  2. ERA is in a similar decline, possibly indicating that improved pitches has had as much of an impact as testing
  3. Batting Average has remained flat.  This means that the reduction in HR has not impacted BA.
  4. Teams are simply scoring fewer runs, likely due to the reduction in long balls
  5. The trend in complete games is despicable

What do you see?  Play around with the different stats and see if you can draw any conclusions.

December 21, 2009

Cocaine: Are the number of addicts increasing?

2 comments
The Guardian DataBlog is a great resource if you want to take random data sets and practice your visualization skills. One of the great aspects of this blog is that they provide all of the data; all you need to do is download them and start playing.

There was a blog post on December 3rd with the subtitle "Latest figures show more and more young people seeking treatment for cocaine addiction." The report in this post was concise and to the point: the number of people between the ages of 18-24 seeking treatment for cocaine use has skyrocketed between 2005 and 2009. I wanted to take their text-based summary and create visualizations (which is what they challenge their readers to do).

First, I wanted to understand the amount of drug use for all drugs.



A few observations quickly jump out:
  1. 70% of the addicts are being treated for opiates or an opiates/crack cocktail. This should obviously be the focal point for reducing addiction rates.

  2. It looks like there could have been some type of drug prevention or treatment program launched in 2006-2007. I would have to do some deeper research to find out, but this quick visualization leads you in that direction, which is exactly what rapid fire analysis is all about.

  3. Female drug use is at its highest between the ages of 18-24, while men seek treatment between the ages of 25-29.
In the visualization for cocaine use only, I wanted to duplicate exactly what the blog post stated.



The facts stated are:
  1. A total of 1,591 people in England aged 18-24 began receiving treatment for dependence for cocaine in 2005-06.

  2. That number has soared to 2,998 in 2008-09, a jump of 88%.

  3. The number of women in the 18-24 age group rose 80% (from 329 to 592) over the four years, while the number of men increased by 91% (from 1,262 to 2,406).

  4. Among under-35s, the number of women starting treatment has gone up 60% (from 790 to 1,261), while for men it jumped 75% (from 3,024 to 5,263).
I believe this visualization captures all of these effectively in one view. I made both of these interactive use Tableau. You can download the packaged workbook here.

If you have Tableau Desktop, then you can created your own views and I'd love for you to share them. If not, you can use the free Tableau Reader and interact with the data by simply clicking on the points of interest. Once you click, all of the other views will automatically refresh.