Description Usage Arguments Details Value Note References Examples
Generates a plot of a vector of Herfindahl-Hirschman Index (HHI) values over a period of time
1 | plot_hhi(x, "t", "h")
|
x |
Name of the data frame |
t |
Name of the vector (variable) from the data frame, x, corresponding with a measure of time (year, month, etc.) |
h |
Name of the vector (variable) from the data frame, x, corresponding with the HHI values |
Allows for placing objects directly from working datasets (including, data frame, measure of time, and stored HHI values in quotes) into the function for intuitive usage. Function supports any measure of time.
hhi.plot A plot of HHI values over time
The "plot_hhi" function is meant for quick visual rendering of a vector of HHI values over a period of time leveraging ggplot2. Users are advised to generate original plots with other plotting packages beyond "hhi" to allow for greater flexibility in customizing visual output according to specific needs.
Hirschman, Albert O. 1945. "National power and structure of foreign trade." Berkeley, CA: University of California Press.
Herfindahl, Orris Clemens. 1950. "Concentration in the steel industry." Ph.D. dissertation, Columbia University.
Rhoades, Stephen A. 1993. "The herfindahl-hirschman index." Federal Reserve Bulletin 79: 188.
Waggoner, Philip D. 2018. "The hhi Package: Streamlined Calculation and Visualization of Herfindahl-Hirschman Index Scores." Journal of Open Source Software 3(28), 828.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.