The goal of retirementDash
is to present pertinent and relevant
criteria for selecting a retirement location in the United States. This
project proceeded in two stages. The first stage was to create a
county-level dataset retirementData
, which is hosted in its own
package and
repository. The
second stage was to display the data in an interactive, user-friendly
dashboard, shown above.
You can install the development and experimental version of
retirementDash
from its
repository with:
# Or the development version from GitHub:
# install.packages("devtools")
install_github("RobWiederstein/retirementDash")
The side panel provides 17 criteria to filter the 3,142 United States
counties. The sliders were preset to the 2.5% and the 97.5% percentiles
to eliminate outliers. With seventeen sliders set in a similar manner,
only 2028 counties display when the select counties
button is pushed.
The map contains an overlay for airports, colleges, hospitals and military bases. For those features to be displayed, the adjacent box must be checked. Airports include information regarding annual passengers; colleges the number of students; hospitals the CMS star rating; and military bases the surface area.
The counties tab displays the filtered results in a tabular form. The user may select variables and sort and download the counties that meet his or her criteria. This is particularly useful for preserving the results.
The user may use the x-axis
and y-axis
axis to create a scatterplot.
Additional attributes for size and color are provided. This could be
helpful in further refining the criteria on the landing page. For
example, some parts of the United States have very high housing prices
relative to household income, a variable named years_to_payoff
. Users
may then reset the inputs based upon the analyzer plot.
A fourth tab includes inter-county migration data from the IRS. Entry of one county shows where its residents migrated to (“moved-out”) and where its residents came from (“moved-in”).
The following packages were indispensable to the retirementData
and
retirementDash
projects:
Please note that the retirementDash project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.