This function creates a chart that compares the job counts in an industry at the more recent estimate year to the year that the county experienced peak employment. The function does allow for alternative peak years to be used by specifying the peakyear parameter to a value between 2002 and 2008.
1 | cp_indchange(fips, countyname, base = 12, peakyear = 1)
|
fips |
is the fips code for the main area to be compared |
base |
is the base text size for the ggplot2 object and codemog_theme() Deafults to 12 |
peakyear |
is both a switch and an input, if set to 1 it uses the max employment between 2002 and 2008, otherwise it uses what is supplied. |
state |
is the state that the original fips |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.