Description Usage Arguments Value Geographic Subsetting Parameters Aesthetic Parameters
Simple mapping tool
1 2 3 4 5 6 7 8 9 10 11 12 13 |
geo |
Character string; Provide level of map geography e.g. county. See details. |
data |
Dataframe; ID columns matching the level of geography. See details. |
value |
character; Name of the column in |
id |
character; "fips" by default.
Name of the column in |
year |
integer; Currently either 2000 or 2010. Year of census geography. The most recent year by default. |
detailed |
logical; FALSE by default. If TRUE, then more detailed geographies are used when available |
class |
|
... |
Optional aesthetic parameters, subsetting parameters. See details below. |
1 2 |
states
: Vector of state FIPS codes.
Character and numeric vectors allowed.
counties
: Vector of county FIPS codes.
Character and numeric vectors allowed. If length of states
vector is
longer than one, then counties
vector must be of the same length.
tracts
: Vector of tract FIPS codes.
Character and numeric vectors allowed. If length of states
vector or
counties
vector islonger than one, then tracts
vector must be of
the same length as counties
vector.
gradient
: The color gradient to be plotted, currently only "redblue"
gradient_dir
: The direction the color gradient should go. Default is
1
for low values to get the first value of the gradient and
-1
is for low values to get the second value of the
color gradient.
gradient_breaks
: A vector of five probabilities in [0,1]^5
that define the quantiles of values
that the gradient emphasizes.
Defaults to c(0,0.35,0.5,0.65,1)
linesize
: The size of the borders of geographic units. Defaults to
0.05 for plotting tracts, 0.1 for other levels of geography
alpha
: Transparency parameter for fill colors. 0 is completely
transparent and 1 is completely opaque. Defaults to 0.9
bordercolor
: Color of geography borders
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.