draw_usa: Map registered companies in the continental USA

Description Usage Arguments Details Value Note Author(s) Examples

Description

Displays a map of a the continental US, showing registered companies clustered by the business zipcode, sized by the amount per zip code, and color-coded by the company's primary industry.

Usage

1
draw_usa(x, savemap = FALSE)

Arguments

x

A data frame of addresses in the SEC's format

savemap

file name of the saved map in .png format. If this is not provided, the function will draw the map on the screen, but not save it to a file.

Details

This function will use the data frame's geographic data (latitude and longitude based on the business zip code) to map the locations of registered companies in that state. The map data is shown by size of data point (based on the amount of companies in a given area), and color-coded by the industry that it is in.

Value

A registered company map of the continental US

Note

This function makes use of the ggmap package. It also uses the 'Lat' and 'Long' fields to perform its mapping. The base SEC address file doesn't contain any geographical data. This means that before running this routine, create "Lat" and "Long" columns, and create a 'companies' column that contains a count of companies per zip code. The routine 'add_geodata' can perform this function for you.

Author(s)

Nick Lukianoff

Examples

1
2
draw_usa(df)
draw_usa(df,"Registered Companies")

NickSEC/SECAddresses documentation built on May 7, 2019, 6:07 p.m.