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

Add more visualizations for India #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

noorfathima11
Copy link

  • 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)
Copy link
Member

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)))
Copy link
Member

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
Copy link
Member

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.
Copy link
Member

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"}}}))

;------------------------------------------------------------------------------------------------------------------------------------------------------
Copy link
Member

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"}}}))

;-------------------------------------------------------------------------------------------------
Copy link
Member

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
Copy link
Member

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?

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.

2 participants