API · 2024

YelpViz

An R package for Yelp business analytics and maps.

  • RoleCo-author · R package authoring + data viz
  • Timeframe2024
  • TypeAPI
R packageReusable across datasets
SpatialChoropleth + heatmap
2install paths (devtools::install_github + .tar.gz)
Figure for YelpViz
Figure 1. An R package for Yelp business analytics and maps.

01The problem

Yelp hides location patterns in long lists — a map shows where a business works at a glance.

02Approach & architecture

Built a reusable R package wrapping the Yelp API: choropleth maps, density heatmaps, and rating comparisons, with CI and 88% test coverage.

03Results & impact

Measured What the work shows

An R package installable with devtools::install_github or from a .tar.gz, with choropleth and heatmap functions that work on any dataset with business locations.

Expected Possible impact, not yet measured

Intended for site analysis in retail, real estate or delivery.

04Lessons

Test coverage and CI matter as much as the code itself for a package you expect anyone to install. The biggest design call was making interactive Plotly the default rather than static ggplot2 — it doubles the value of the analytical functions because the user can drill into specific points without re-running the analysis.

—Stack

RYelp Fusion APIPlotlyggplot2devtoolsGitHub Actionstestthat