R Tutorials for Citizen Data Scientists

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 …

Data Analytics – GGPLOT LEGEND TITLE, POSITION AND LABELS

GGPLOT LEGEND TITLE, POSITION AND LABELS   This R graphics tutorial shows how to customize a ggplot legend. you will learn how to: Change the legend title and text labels Modify the legend position. In the default setting of ggplot2, the legend is placed on the right of the plot. We’ll show examples of how to …

Data Analytics – GGPLOT LOG SCALE TRANSFORMATION

GGPLOT LOG SCALE TRANSFORMATION   This article describes how to create a ggplot with a log scale. This can be done easily using the ggplot2 functions scale_x_continuous() and scale_y_continuous(), which make it possible to set log2 or log10 axis scale. An other possibility is the function scale_x_log10() and scale_y_log10(), which transform, respectively, the x and y axis scales into a log scale: base …

Data Analytics – GGPLOT AXIS TICKS: SET AND ROTATE TEXT LABELS

GGPLOT AXIS TICKS: SET AND ROTATE TEXT LABELS   This article describes how to easily set ggplot axis ticks for both x and y axes. We’ll also explain how to rotate axis labels by specifying a rotation angle. In this R graphics tutorial, you will learn how to: Change the font style (size, color and face) of the axis tick mark …

Data Analytics – TYPES OF CLUSTERING METHODS: OVERVIEW AND QUICK START R CODE

TYPES OF CLUSTERING METHODS: OVERVIEW AND QUICK START R CODE   Clustering methods are used to identify groups of similar objects in a multivariate data sets collected from fields such as marketing, bio-medical and geo-spatial. They are different types of clustering methods, including: Partitioning methods Hierarchical clustering Fuzzy clustering Density-based clustering Model-based clustering   In this article, we …

Statistics with R for Business Analysts – Random Forest

(R Tutorials for Citizen Data Scientist) Statistics with R for Business Analysts – Random Forest In the random forest approach, a large number of decision trees are created. Every observation is fed into every decision tree. The most common outcome for each observation is used as the final output. A new observation is fed into …

Statistics with R for Business Analysts – Decision Tree

(R Tutorials for Citizen Data Scientist) Statistics with R for Business Analysts – Decision Tree Decision tree is a graph to represent choices and their results in form of a tree. The nodes in the graph represent an event or choice and the edges of the graph represent the decision rules or conditions. It is …

Statistics with R for Business Analysts – Nonlinear Least Square

(R Tutorials for Citizen Data Scientist) Statistics with R for Business Analysts – Nonlinear Least Square When modeling real world data for regression analysis, we observe that it is rarely the case that the equation of the model is a linear equation giving a linear graph. Most of the time, the equation of the model …

Statistics with R for Business Analysts – Time Series Analysis

(R Tutorials for Citizen Data Scientist) Statistics with R for Business Analysts – Time Series Analysis Time series is a series of data points in which each data point is associated with a timestamp. A simple example is the price of a stock in the stock market at different points of time on a given …