In this tutorial, we will learn how to visualize a company's stock price over time. Stock data is an example of time series data, where we have stock price of a company for a period of time. First, we will learn how to get stock price for a company of interest and use ggplot2 to … [Read more...] about Visualizing Stock Price of a Single Company Over Time
How to Color Barplots with R Color Brewer
In this tutorial we will learn to how to color bars in a barplot using R Color Brewer's color palettes. R Color Brewer package "RColorBrewer" offers numerous color palettes that are useful in common situations. For example, it gives "Sequential" palette for ordered data, … [Read more...] about How to Color Barplots with R Color Brewer
How to Highlight Groups with Convex Hull in ggplot2
In this tutorial, we will learn how to annotate or add colors to multiple groups in a scatter plot made with ggplot2 in R using convex hull shapes. Convex hull is basically a box or polygon connecting the outermost data points for each group in a scatter plot with multiple … [Read more...] about How to Highlight Groups with Convex Hull in ggplot2
How to Make Beautiful Tables with gtExtras
A well made table showing the summary of the data is under utilized. gt() package available as part of tidyverse improves the look of a table and makes it easy to read and understand. If you think gt is cool, wait until you see the work of Thomas Mock. Thomas Mock has created … [Read more...] about How to Make Beautiful Tables with gtExtras
How to Center Plot Title in ggplot2
In this tutorial, we will learn one of the most basic and useful tip to place the title (and subtitle) of a plot to center using ggplot2. When we add title to a plot made with ggplot2, it places the title left aligned to the plot by default. Sometimes you might want to place the … [Read more...] about How to Center Plot Title in ggplot2