Skip to content

Error on Choropleth #53

Open
Open
@crvernon

Description

@crvernon

Error:
[1] "There was an error at - `General` - building your map:" <simpleError in process_data(map_data, data_key_field, data_col, data_key_field, shape_obj, shape_data_field, shape_key_field): unused argument (shape_key_field)>

Executed Code:

shp_file <- '/Users/d3y010/projects/gcammaptools/world_shape_file/TM_WORLD_BORDERS_SIMPL-0.3.shp'
csv_file <- '/Users/d3y010/projects/gcammaptools/data.csv'
test <- gcammaptools::choropleth(shape_data = shp_file,
                                 shape_label_field = NULL,
                                 map_data = csv_file,
                                 data_key_field = "Country",
                                 shape_key_field = "NAME",
                                 output_file = "/Users/d3y010/projects/gcammaptools/test_output.png",
                                 data_col = "X2015",
                                 map_legend_title = "Population",
                                 map_title = "2005 Population",
                                 simplify = TRUE,
                                 bin_method = "pretty",
                                 bins = 8,
                                 map_palette_reverse = FALSE,
                                 map_palette_type = "seq")

Let me know if you need version specifics.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions