In this post, we learn how to make axis tick labels bold in ggplot2 R. If you wonder what are axis tick labels, they are the text labels that appear right below the tick marks on a graph's x and y axes. These labels play an omportant role in helping interpret the values … [Read more...] about How to make axis tick label bold
ggplot2
How to make Donut plot with ggplot2
In this tutorial, we will learn how to make a donut plot in R using ggplot2. Donut plot is nothing but a bar plot, reshaped into pie-chart, and then adding a hole at the center to make it look like a donut. We will learn these in step by step manner to understand making Donut … [Read more...] about How to make Donut plot with ggplot2
How to change axis tick label size in ggplot2
In this post we will learn how to change axis tick label size in ggplot2 with multiple example. When we make a plot with ggplot2, plots have axis ticks- small vertical bars on both x and y axis, and tick labels - right below the ticks. We can change the size of axis tick … [Read more...] about How to change axis tick label size in ggplot2
How to make rolling mean line plot of stock data
In this post we will learn how to make a moving average line plot of stock data, a great example of time series data. rolling_mean() function in zoo package can compute moving average of data of interest over a window size. For example, if we want to compute 7-day moving average, … [Read more...] about How to make rolling mean line plot of stock data
How to add P-value to each facet in ggplot2
In this tutorial, we will learn how to add p-value to each facet plot made with facet_wrap() function in ggplot2. We will use scatter plot example, where we have multiple scatter plots using facet_wrap and we have done linear regression analysis to find the statisitical … [Read more...] about How to add P-value to each facet in ggplot2