Chapter 6 Interactive component

Interactive Plots - Drug Abuse Analytics

Consumption of Drugs Over the years for a paricular State in US

  • Select the desired state from the below dropdown for which Drug Consumption behaviour needs to be observed.
  • After selecting a particular state, this graph will show the propotion of the DRUGS consumption over the years.

Information of Drug Cases and Population (Years 2015 - 2019)

  • Hover on the particular region of the map for which the drug stats needs to be analyzed.
  • The tooltip box on the left hand side depicts the Total Population and Number of Cases observed in that particular area over last five years.
  • Note: The darker region depicts the fact there are more number of drug abuse cases. Moreover, the width of the tooltip has been expanded (equal to width of plot) due to a few css classes being overriden by R Markdown CSS files
REFERENCES