In this post we will learn how to make simple maps using ggplot2 in R. We will first see an example of making a state level US map and then we will see an example of county level statemap. Then finally we will see how to overlay data of interest on to the map. To be more specific … [Read more...] about How To Make US State and County Level Maps in R?
ggplot2
Multiple Line Plots or Time Series Plots with ggplot2 in R
Line plots or time series plots are helpful to understand the trend over time. In this post we will learn how to make multiple line plots (or time-series plots in the sample plot) in R using ggplot2. Let us load tidyverse the suite of R packages including ggplot2 to make the … [Read more...] about Multiple Line Plots or Time Series Plots with ggplot2 in R
How To Make Ridgeline Plot with ggridges in R?
Ridgeline plot is one of the data visualization techniques that is suitable for visualizing multiple distributions or changes in distributions over time or space. Claus Wilke made created this plot and a package in R to make this easily. He defines it as a partially overlapping … [Read more...] about How To Make Ridgeline Plot with ggridges in R?
How To Make Violin Plots with ggplot2 in R?
Violin plots are a way visualize numerical variables from one or more groups. Violin plots are similar to box plots. A boxplot shows a numerical distribution using five summary level statistics. Violin plots have the density information of the numerical variables in addition to … [Read more...] about How To Make Violin Plots with ggplot2 in R?
How To Highlight a Bar in Barplot in R?
Sometimes while making a barplot, you might like to highlight a single bar in different color when compared to other bars. In this post, we will learn how to highlight a bar in barplot using ggplot2 in R. A Barplot displays counts or some quantitative variable corresponding to … [Read more...] about How To Highlight a Bar in Barplot in R?