INTRODUCTION Leaflet is one of the most popular open-source JavaScript libraries for interactive maps. It provides features like Interactive panning/zooming, Map tiles, Markers, Polygons, Lines, Popups, GeoJSON, creating maps right from the R console or RStudio, embedding maps in knitr/R Markdown documents and Shiny apps. It also allows you to render spatial objects from the […]
Exercises (beginner)
Simple Numerical Modeling in R – Part 1: Exercises
The modeling process is just one of the methods to find a solution for a certain problem. It can be a combination between empirical simulation approaches. The empirical method is data-based analysis that relies upon mathematical function and often has no meaning in real life. An approach using simulation is more based on scientific understanding […]
How To Plot Air Pollution Data With Openair: Exercises
INTRODUCTION The openair package is specifically designed to plot air pollution data. This tutorial will give a brief introduction to many of the plotting functions in openair. This tutorial will cover the following openair functions. SummaryPlot() windRose() pollutionRose() percentileRose() timePlot() calendarPlot() Before proceeding, please follow our short tutorial. Look at the examples given and try […]
Modeling With ANCOVA – Part 2: Exercises
In this 2nd part of ANCOVA modeling exercises, we will focus on the extend of ANCOVA visualization using the predict function. The function will help us to plot the linear regression of ANCOVA and also predict other useful information that aids our interpretation (We’ll see later.) The previous exercise can be found here. Answers to these […]
Basic R For Stata Users: Exercises
The speed and simplicity of Stata for the most basic modeling applications is amazing. However, for many of us who have switched to R, the flexibility, the community, and the fact that R is open source makes it, at least, a powerful complement. These exercises focus on some of the most commonly used commands in […]
R For Hydrologists – Loading and Plotting Data Part 1: Exercises
LOADING AND PLOTTING THE DATA (Part 1) Working with hydro-meteorological data can be very time consuming and exhausting. Luckily, R can provide a framework to easily import and process data in order to implement statistical analysis and models. In these tutorials, we are going to explore and analyze data from a tropical basin in order […]
Modeling With ANCOVA – Part 1: Exercises
In the previous exercise on the #REcology series, we learned how to define the impact of one explanatory variable to another response variable. In a real practice, particularly in experimental or observational design, explanatory variables are often found to be more than one. Thus, it needs a new determination to analyze the data-set and generate […]
Graphics With Lattice: Part 2: Exercises
We will continue working with Lattice and see some more things that are possible to do with lattice. The answers to these exercises are available here. You can also check the previous before diving into it. Exercise 1 Create a Box whisker plot from the diamonds data-set, where I want to see the price’s distribution (ex. […]
PDF tables with kableExtra and RMarkdown – exercises
INTRODUCTION The goal of this tutorial is to introduce you to kableExtra, which you can use to build common complex tables and manipulate table styles. It imports the pipe %>% symbol from magrittr and verbalizes all the functions in order to permit you to add “layers” to the kable output. In combination with R Markdown, […]
Groups Comparison With ANOVA: Exercises (Part 2)
On this 2nd part of groups comparison exercise, we will focus on nested ANOVA application in R, particularly the application on ecology. This is the last part of groups comparison exercise.Previous exercise can be found here Answers to the exercises are available here. If you obtained a different (correct) answer than those listed on the […]