How To Make Lollipop Plot in R with ggplot2?

Reordered Lollipop Chart in R

In this post, we will learn how to make lollipop plots in using R. Lollipop plots or lollipop charts kid of related to barplots or scatter plot when one of the variables is categorical variable. We will use NYC flights data from nycflights13 R package. Let us load tidyverse and nycflights13 packages. Data for making… Continue reading How To Make Lollipop Plot in R with ggplot2?

How To Reorder Boxplots in R with ggplot2

How To Reorder Boxplots in R? Descending Order with reorder()?

In this post, we will learn how to re-order boxplots in R with ggplot2. We will make a boxplot using ggplot2 with multiple groups. By default, ggplot2 orders the groups in alphabetical order. We will see multiple examples of reordering boxplots by another variable in the data using reorder() function in base R. We will… Continue reading How To Reorder Boxplots in R with ggplot2

How To Color Scatter Plot by Variable in R with ggplot2?

Scatter Plot R: Fill color by variable

In this post we will learn how to color scatter plots using another variable in the dataset in R with ggplot2. Scatter plots are extremely useful identify any trend between two quantitative variables. However, often you have additional variable in a data set and you might be interested in understanding its relationship. One way to… Continue reading How To Color Scatter Plot by Variable in R with ggplot2?

How To Color Boxplots By a Variable in R with ggplot2?

Filling boxplot with colors using geom_boxplot()

In this tutorial, we learn how to color boxplots in R by a variable. With ggplot2 in R, we can color boxplots in multiple ways. In this post, we will first see how to make a simple boxplot in R. And then we will learn how to fill the boxes on boxplot by a variable.… Continue reading How To Color Boxplots By a Variable in R with ggplot2?

Introduction to Color Palettes in R with RColorBrewer

RColorBrewer color blind friendly palettes

RColorBrewer is a R package based on colorbrewer2.org that offers a variety of color palettes to use while making plots in R. Choosing which colors to use while making data visualization is not an easy task. In this tutorial we will see the basics of color palettes available with RColorBrewer package. A Color palette is… Continue reading Introduction to Color Palettes in R with RColorBrewer

Exit mobile version