get_title: Automatically generate the title for the map or plot.

Description Usage Arguments Value See Also Examples

Description

The title of map of plot heavily depends on the input parameters. To help user generate the title, this function will guess the range and type of inputs and provide a title. Always, this title can be override by ggtitle().

Usage

1
2
3
get_title(Year = NULL, Nutrient = NULL, Input_Type = NULL,
  Farm_Type = NULL, State = NULL, County = NULL, State_title = NULL,
  County_title = NULL, FIPS = NULL, level = "county")

Arguments

Year

the temporal coverage of the data to visualize. See link for available period.

Nutrient

the nutrient type of fertilizer from usfertilizer. Has to be N, P or both (NULL).

Input_Type

the input source of fertilizer, should be manure, fertilizer.

Farm_Type

the spatial source of fertilizer, should be farm, nonfarm or both.

State

the states that will show in the plot,default: all states.

County

the counties that will show in the plot, default: all counties.

State_title

the user-defined title for state.

County_title

the user-defined title for county.

FIPS

FIPS numbers of interest, defalut: all the counties.

level

the spatial resolution of map, should be county or state, default county.

Value

a ggtile obejct.

See Also

link(get_data), link(get_FIPS)

Examples

1
2
3
4
require(ggfertilizer)
Year = 2002
Nutrient = "N"
get_title(Year = Year, Nutrient = Nutrient)

wenlong-liu/ggfertilizer documentation built on May 28, 2019, 8:43 a.m.