I have written two blog posts about making map in R:
Making maps with R (my first attempt ever!) My first interactive map with {leaflet} This post is sort of a continuation to the first blog post.
UMAP Uniform manifold approximation and projection or in short UMAP is a type of dimension reduction techniques. So, basically UMAP will project a set of features into a smaller space.
There are two functions in R that seems almost similar yet different:
fitted()
predict() First let’s prepare some data first.
# Packages library(dplyr) # Data set.seed(123) dat <- iris %>% mutate(twoGp = sample(c("Gp1", "Gp2"), 150, replace = T), #create two group factor twoGp = as.
Some note I have written a short post about missing data and multiple imputation in mice package previously. This post will add to that previous post.
Imputation model Imputation model is the model that we use for our imputation approach.
As written in the title of the post, this is my first try ever in making a map with R. I found a great data on the distribution of the clinics in Malaysia.
Recently, I found a GitHub repo containing a global COVID-19 dataset. I thought, why not try to do some plotting for Southeast Asian countries. So, I downloaded the data and limited the data to Southeast Asian countries only (Brunei, Indonesia, Malaysia, Philippines, Singapore, Thailand and Vietnam).
In a couple of days, I am going to conduct a pre-conference workshop for Malaysian R conference 2021. So, some of the data that I am going to use for this workshop is available in a table in pdf form.
Background Missing data is quite challenging to deal with. Deleting it may be the easiest solution, but may not be the best solution. Missing data can be categorised into 3 types (Rubin, 1976):
We are going to do a basic google trends search using gtrendsR package and do some plotting with ggplot2.
These are the required packages.
library(gtrendsR) library(tidyverse) Run gtrends() function to search our keywords of interest (i.