If you have any basic experience with R, you probably noticed that R uses three dots ellipsis (…) to allow functions to take arguments that weren’t pre-defined or hard-coded when the function was built. Even though R beginners are usually aware of this behavior, especially due to some common functions that implement it (for example, […]
Tutorials
Automating and Scheduling R Scripts in Windows: Tutorial
This tutorial will teach you how to run and schedule R scripts from the command line. Even though parts of this tutorial applies for other operating systems as well, the focus will be on Windows, since it is a bit less straightforward than in other systems. By the end of this tutorial, you will have […]
How To Create a Flexdashboard
**Please note** This tutorial is largely taken from the relevant package github page **Please note** INTRODUCTION With flexdashboard, you can easily create interactive dashboards for R. What is amazing about it is that with R Markdown, you can publish a group of related data visualizations as a dashboard. Additionally, it supports a wide variety of […]
How To Plot With Patchwork
INTRODUCTION **Please note** This tutorial is largely taken from the relevant package github page **Please note** The package patchwork is beeing used to as a connector between different ggplots. More specifically it display them in one picture. Installation You can install patchwork from github with: # install.packages(“devtools”) devtools::install_github(“thomasp85/patchwork”) Its usage is quite straighforward if you […]
How to Plot With Dygraphs
**Please note** This tutorial is largely taken from the relevant package github page **Please note** The dygraphs package is an R interface to the dygraphs JavaScript charting library. It provides rich facilities for charting time-series data in R, including: 1. Automatically plots xts time-series objects (or any object convertible to xts.) 2. Highly configurable axis […]
How to Plot With Ggiraph
**Please note** This tutorial is largely taken from the relevant package github page **Please note** INTRODUCTION The ggiraph is an htmlwidget and a ggplot2 extension. It allows ggplot graphics to be animated. Animation is made with ggplot geometries that can understand three arguments: Tooltip: a column of data-sets that contain tooltips to be displayed when […]
How to Plot With Metricsgraphics
Introduction to Metricsgraphics Metricsgraphics is an htmlwidget interface to the MetricsGraphics.js JavaScript/D3 chart library. **Please note** This tutorial is largely taken from the relevant package github page **Please note** Installation devtools::install_github(“hrbrmstr/metricsgraphics”) Usage Building metricsgraphics charts follows the “piping” idiom, made popular through the magrittr, ggvis and dplyr packages. This makes it possible to avoid one […]
How to Visualize Data With Highcharter
INTRODUCTION Highcharter is a R wrapper for Highcharts javascript libray and its modules. Highcharts is very mature and flexible javascript charting library and it has a great and powerful API1. The main features of this package are: Various chart type with the same style: scatters, bubble, line, time series, heatmaps, treemap, bar charts, networks. Chart […]
Advanced Techniques With Raster Data – Part 3: Exercises
Background In this post, the ninth of the geospatial processing series with raster data, I will focus on interpolating and modeling air surface temperature data recorded at weather stations. For this purpose I will explore regression-kriging (RK), a spatial prediction technique commonly used in geostatistics that combines a regression of the dependent variable (air temperature […]
How To Start Plotting Interactive Maps With Leaflet
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 […]