How To Remove X Axis Tick and Axis Text with ggplot2 in R?

Remove x-axis tick and x-axis Text in ggplot2

Sometimes when you make a plot in R you might want the plot without ticks and text on axis. In this tutorial, we will learn how to remove x-axis or y-axis ticks and the text in R with ggplot2. Let us first load tidyverse, a suite of R packages from RStudio. Let us also load… Continue reading How To Remove X Axis Tick and Axis Text with ggplot2 in R?

Grouped Boxplots in Python with Seaborn

Grouped Boxplot in Python with Seaborn

In this post, we will learn how to make grouped boxplots in Python using Seaborn’s boxplot function. Grouped boxplots are a great way to visualize when you have three variables, where one of them is a numerical variable and the other two are categorical variables. Let us load the packages needed to make grouped boxplot… Continue reading Grouped Boxplots in Python with Seaborn

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?

Exit mobile version