WhatsApp Chat Sentiment Analysis in R

Data Visualisation: Create Interactive Web Maps Using Leaflet Using R Programming

Objective: To plot Locations on an interactive map based on latitude and longitude using Leaflet package.

Step 1: Install and Load required package


Step 2: Assign Longitude and Latitude values.

Longitude <- 138.2529
Latitude <- 36.2048

Step 3: Create and print map

>Japan <- leaflet() %>%
  addTiles() %>%
  addMarkers(lng= Longitude, lat= Latitude, popup="Japan" )
>print(Japan )


HTML Output

Posts You May Like: