50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


choroplethr (version 5.0.0)

Choropleth: The base Choropleth object.

Description

The base Choropleth object.

The base Choropleth object.

Arguments

Methods


Method new()

Usage

Choropleth$new(
  ref.regions,
  ref.regions.name,
  map.df,
  geoid.all,
  user.df,
  geoid.name,
  geoid.type,
  value.name,
  num_colors,
  label_col
)


Method set_zoom()

Usage

Choropleth$set_zoom(zoom)


Method get_ggscale()

Usage

Choropleth$get_ggscale(
  choropleth.df = self$choropleth.df,
  respect_zoom = TRUE,
  custom.colors,
  color.min,
  color.max,
  na.color,
  nbreaks
)


Method get_projection()

Usage

Choropleth$get_projection(
  choropleth.df = self$choropleth.df,
  respect_zoom = TRUE,
  projection_name,
  ignore_latlon,
  limits_lat,
  limits_lon,
  reproject,
  whitespace
)


Method render()

Usage

Choropleth$render(
  choropleth.df = self$choropleth.df,
  ggscale,
  projection,
  respect_zoom = TRUE,
  occlude_latlon_limits,
  border_color,
  border_thickness,
  background_color,
  gridlines,
  latlon_ticks,
  label,
  label_text_size,
  label_text_color,
  label_box_color,
  ggrepel_options,
  legend,
  legend_position,
  title,
  addl_gglayer
)


Method clone()

The objects of this class are cloneable with this method.

Usage

Choropleth$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.