-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add more visualizations for India #7
base: master
Are you sure you want to change the base?
Conversation
noorfathima11
commented
Mar 30, 2020
- Added all countries bar chart for covid 19 cases
- Added visualization for daily cases using time-series for India
- Added hospital beds data to India's population tsv file
- Added cloropleth for visualizing distribution of hospital beds per 1k population of each state.
- Added tick plot with dual axis for hospital beds and population per state
- Added all the plots that I experimented with
@@ -21,9 +21,9 @@ | |||
;; through an Oz server. Oz will open a browser window to display the | |||
;; visualizations. | |||
(comment | |||
(oz/start-server! 8082) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you undo these formatting changes? I actually like for comment
blocks to have a couple blank lines before their end-parenthesis. It makes it easier to evaluate as I move my cursor.
@@ -72,9 +77,9 @@ | |||
india-geojson-with-data) | |||
|
|||
;; for inspection without flooding my REPL, we ignore the many many coordinates: | |||
(map #(dissoc % :geometry) (:features india-geojson-with-data)) | |||
(map #(dissoc % :geometry) (:features india-geojson-with-data))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's another formatting/whitespace change that would be nice to undo
@@ -137,3 +142,221 @@ | |||
:color {:field "country-region" :type "ordinal" | |||
:scale {:range [(:purple applied-science-palette) | |||
(:green applied-science-palette)]}}}})) | |||
|
|||
;;;; =========================================================================== | |||
;;;; Daily new cases in a particular country over the past N days |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update this comment-heading?
(def state-population-and-beds | ||
(mcsv/read-csv "resources/india.state-population.tsv" {:fields [:state :population :beds]})) | ||
|
||
;; dual axis tick plot visualizing the population and hospital beds in each state of India. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
{:field "beds-per-1k" :type "quantitative"}]} | ||
:selection {:highlight {:on "mouseover" :type "single"}}})) | ||
|
||
;------------------------------------------------------------------------------------------------------------------------------------------------------ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the standard "four semicolons, space, 75 equals signs" here.
;;;; ===========================================================================
:titleColor "#d32f2f"}}}}] | ||
:resolve {:scale {:y "independent"}}})) | ||
|
||
;------------------------------------------------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;;;; ===========================================================================
@@ -0,0 +1,30 @@ | |||
(ns appliedsciencestudio.covid19-clj-viz.world |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's going on in this namespace?