R tutorials for Business Analyst

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 …

R tutorials for Business Analyst – R ANOVA Tutorial: One way and Two way

(R Tutorials for Business Analyst) In this end-to-end example, you will know how to use ANOVA in R with examples. R ANOVA Tutorial: One way & Two way with Examples What is ANOVA? Analysis of Variance (ANOVA) is a statistical technique, commonly used to studying differences between two or more group means. ANOVA test is centred …

R tutorials for Business Analyst – T Test in R: One Sample and Paired

(R Tutorials for Business Analyst) In this end-to-end example, you will know how to use T test in R with examples. T Test in R: One Sample and Paired with Example What is Statistical Inference? Stastitical inference is the art of generating conclusions about the distribution of the data. A data scientist is often exposed …

R tutorials for Business Analyst – Bar Chart and Histogram in R

(R Tutorials for Business Analyst) In this end-to-end example, you will know how to use R graphics for Bar chart and Histogram plot with examples. Bar Chart & Histogram in R with Example A bar chart is a great way to display categorical variables in the x-axis. This type of graph denotes two aspects in …

R tutorials for Business Analyst – How to make Boxplot in R

(R Tutorials for Business Analyst) In this end-to-end example, you will know how to use R graphics for Boxplot plots with examples. How to make Boxplot in R with Examples You can use the geometric object geom_boxplot() from ggplot2 library to draw a box plot. Box plot helps to visualize the distribution of the data by …