Reading and Writing CSV Files in Python

Reading and Writing CSV Files in Python What is a CSV File? A CSV (Comma Separated Values) file is a file that uses a certain formatting for storing data. This file format organizes information, containing one record per line, with each field (column) separated by a delimiter. The delimiter most commonly used is usually a …

Data Analytics – EASY IMAGE PROCESSING IN R USING THE MAGICK PACKAGE

EASY IMAGE PROCESSING IN R USING THE MAGICK PACKAGE   This article describes how to perform image processing in R using the magick R package, which is binded to ImageMagick library: the most comprehensive open-source image processing library available. The magick R package supports: Many common formats: png, jpeg, tiff, pdf, etc Different manipulations types: rotate, scale, crop, trim, flip, …

Data Analytics – DISPLAY A BEAUTIFUL SUMMARY STATISTICS IN R USING SKIMR PACKAGE

DISPLAY A BEAUTIFUL SUMMARY STATISTICS IN R USING SKIMR PACKAGE   This article describes how to quickly display summary statistics using the R package skimr. skimr handles different data types and returns a skim_df object which can be included in a tidyverse pipeline or displayed nicely for the human reader. Key features of skimr: Provides a larger set of statistics than …

Data Analytics – HOW TO EASILY MANIPULATE FILES AND DIRECTORIES IN R

HOW TO EASILY MANIPULATE FILES AND DIRECTORIES IN R   This article presents the fs R package, which provides a cross-platform, uniform interface to file system operations. fs functions are divided into four main categories: path_ for manipulating and constructing paths file_ for files dir_ for directories link_ for links   Contents: Prerequistes Some Key R functions Basic usage Filter files Read …

Data Analytics – GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R

GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R   This article presents how to easily highlight a ggplot using the gghighlight package. Contents: Prerequisites Line plot Histogram Scatter plot Bar plot   Prerequisites Load required packages and set the default ggplot2 theme to theme_bw(). library(tidyverse) library(gghighlight) theme_set(theme_bw()) Line plot Basic line plot p <- ggplot( airquality, …

Data Analytics – GGANIMATE: HOW TO CREATE PLOTS WITH BEAUTIFUL ANIMATION IN R

GGANIMATE: HOW TO CREATE PLOTS WITH BEAUTIFUL ANIMATION IN R   This article describes how to create animation in R using the gganimate R package. gganimate is an extension of the ggplot2 package for creating animated ggplots. It provides a range of new functionality that can be added to the plot object in order to customize how …

Data Analytics – EASY CORRELATION MATRIX ANALYSIS IN R

EASY CORRELATION MATRIX ANALYSIS IN R USING CORRR PACKAGE   This article describes how to easily compute and explore correlation matrix in R using the corrr package. The corrr package makes it easy to ignore the diagonal, focusing on the correlations of certain variables against others, or reordering and visualizing the correlation matrix. It can also compute correlation matrix …

Data Analytics – TOP R COLOR PALETTES TO KNOW FOR GREAT DATA VISUALIZATION

TOP R COLOR PALETTES TO KNOW FOR GREAT DATA VISUALIZATION   This article presents the top R color palettes for changing the default color of a graph generated using either the ggplot2 package or the R base plot functions. You’ll learn how to use the top 6 predefined color palettes in R, available in different R packages: Viridis color scales [viridis package]. …

Data Analytics – GGPLOT THEME BACKGROUND COLOR AND GRIDS

GGPLOT THEME BACKGROUND COLOR AND GRIDS   This article shows how to change a ggplot theme background color and grid lines. The default theme of a ggplot2 graph has a grey background color. You can easily and quickly change this to a white background color by using the theme functions, such as theme_bw(), theme_classic(), theme_minimal() or theme_light() (See ggplot2 themes gallery). Another alternative is to modify directly …

Data Analytics – GGPLOT THEMES GALLERY

Data Analytics – GGPLOT THEMES GALLERY   In this R graphics tutorial, we present a gallery of ggplot themes. You’ll learn how to: Change the default ggplot theme by using the list of the standard themes available in ggplot2 R package. Our selection of best ggplot themes for professional publications or presentations, include: theme_classic(), theme_minimal() and theme_bw(). Another famous theme is the dark …