MulaiMulai sekarang secara gratis

Loading the leaflet Library

Using the htmlwidgets and leaflet packages in R you can create interactive maps with only a couple of lines of R code.

There are three steps that are required to create an interactive web map in R using leaflet:

  1. loading the leaflet library
  2. initializing the leaflet widget using the leaflet() function
  3. adding a map tile

Load leaflet and access the help file. What are the required arguments to the leaflet() function?

Latihan ini adalah bagian dari kursus

Interactive Maps with leaflet in R

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga