12/28/2019

Objective

The objective of this presentation is to generate geo scatter plot map in R using the “Plotly” library. The map will display Education Institutions in Malaysia. The data is random generated value to be use in this project.

Load Libraries

library(plotly)
## Warning: package 'plotly' was built under R version 3.6.2
## Loading required package: ggplot2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout

Load Data

Below is the data to be used in this project. Note that, the data is random generated for the purpose of Project.

##                               State Count Latitude Longitude
## 1                             JOHOR    37 1.937344  103.3666
## 2                             KEDAH   218 6.155672  100.5696
## 3                          KELANTAN    39 6.125397  102.2381
## 4                            MELAKA    21 2.206414  102.2465
## 5                   NEGERI SEMBILAN   175 2.731813  102.2525
## 6                            PAHANG   229 3.974341  102.4381
## 7                             PERAK    20 4.693950  101.1176
## 8                            PERLIS    25 6.443589  100.2166
## 9                      PULAU PINANG   449 5.285153  100.4562
## 10                            SABAH    20 5.420404  116.7968
## 11                          SARAWAK    94 1.544765  110.3652
## 12                         SELANGOR  1144 3.509247  101.5248
## 13                       TERENGGANU    39 4.233242  103.4479
## 14 WILAYAH PERSEKUTUAN KUALA LUMPUR   496 3.131920  101.6841
## 15       WILAYAH PERSEKUTUAN LABUAN     7 5.285153  115.2478
## 16    WILAYAH PERSEKUTUAN PUTRAJAYA    30 2.935270  101.6911

Create Geo Scatter Map

The Geo Scatter Plot showing the number of Education Institutions in State of Malaysia.